in reply to Deleting EOF from a file

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: Deleting EOF from a file
by gellyfish (Monsignor) on Jul 15, 2004 at 16:55 UTC

    Well perhaps if you then explain to us what you mean by EOF marker and what OS you are on then we might be able to help. The general case will be:

    perl -pi -e's/$EOF//g' file
    Where YOU replace $EOF with whatever it is that you mean by 'EOF marker'.

    /J\

      It's not quite true, e.g.

      perl -pi -e "s/\r\n/\n/g" file
      would not work on Windows :)

      Upd: my bad, "s/\r\n//g" would work anyway. :(

Re^2: Deleting EOF from a file
by Anonymous Monk on Jul 16, 2004 at 06:37 UTC
    eof is a function. eot is the character (3) that you're looking for, and means "end of text"