[Chicago-talk] removing line from file.

Andy_Bach at wiwb.uscourts.gov Andy_Bach at wiwb.uscourts.gov
Wed Mar 9 11:29:00 PST 2005


Check also
perldoc -f eof

so, I think:
perl -ni.bak -e 'print unless 1..4; close ARGV if eof' file1 file2 file3

will make that work.  untested.

a

Andy Bach, Sys. Mangler
Internet: andy_bach at wiwb.uscourts.gov 
VOICE: (608) 261-5738  FAX 264-5932

In 1968 it took the computing-Power of 2 C-64 to fly a rocket to the moon.
Now, 1997 it takes the Power of a Pentium 133 to run Microsoft Windows 95.
                    Something must have gone wrong.


More information about the Chicago-talk mailing list