[Chicago-talk] removing line from file.

Richard Reina richard at rushlogistics.com
Wed Mar 9 11:28:15 PST 2005


Andy,

In the context of a bigger program what do I need to
do to get that to work?

I tried: 

next if 1 .. 4; print'  file > beheaded_file

do I need to use and open?

--- Andy_Bach at wiwb.uscourts.gov wrote:

> perl -ne 'next if 1 .. 4; print'  file >
> beheaded_file
> 
> using "if x .. y" falls back to using $. (current
> line number).
> 
> 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.
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
> 



More information about the Chicago-talk mailing list