Re: delete last line



On 10 ene, 23:55, Jean-Pierre Radley <j...@xxxxxxx> wrote:
pablo typed (on Thu, Jan 10, 2008 at 02:03:03PM -0800):
| how can I delete the last line of a text file from the command line ?
|
| I mean only last line

        sed '$d' in.file > out.file

--
JP

JP, thanks

in fact this is not working to me because my file is a DOS file ,

I really only want to remove final Ctrl Z character .

I am using xtod , because I need this dos file , but without final
Ctrl Z .

any additional help ?

Thanks

pablo
.



Relevant Pages

  • Re: Popup Menu / Shortcut Menu
    ... Does the code creating the command bar have to be run every time my ... Sub CreateMenuItems() ... Dim Ctrl As Office.CommandBarControl ... MsgBox "AAA" ...
    (microsoft.public.excel.misc)
  • Re: Problem with cutting/pasting using Ctrl shortcuts
    ... If it's not, select All Command in the Categories list, ... Word MVP FAQ site: http://word.mvps.org ... none of the Ctrl functions...Ctrl A is not even ... CTRL+A should highlight all the document. ...
    (microsoft.public.word.docmanagement)
  • Commands not being finished.
    ... Then continuously pressing return kept giving me the command prompt (as ... Couldnt ctrl Z, ... totally stuck. ...
    (comp.os.linux.misc)
  • Re: [Pan] Sig Not Functioning
    ... Frank said from a command line\terminal. ... Ctrl A, Ctrl C, Ctrl N, Ctrl V, Ctrl S. Then a new Linux ... I find it, er, interesting that today's Linux users don't know about `ls'. ... unsuitable for the home user. ...
    (news.software.readers)
  • Re: VBA code to locate the command bar number the printer button is on
    ... Dim Ctrl As Office.CommandBarControl ... > Public Sub TesterA001 ... > Dim Ctrl As Office.CommandBarControl ... >> What would be the simplest VBA code to locate the command bar number ...
    (microsoft.public.excel.programming)