Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: file handling

by shoness (Friar)
on Jul 09, 2008 at 17:48 UTC ( [id://696511]=note: print w/replies, xml ) Need Help??


in reply to file handling

Easier...
/usr/bin/sed -n '3,$ p' < your_input_file

Replies are listed 'Best First'.
Re^2: file handling
by runrig (Abbot) on Jul 09, 2008 at 18:21 UTC
    Even easier:
    /usr/bin/tail +3 your_input_file
      Harder but -Ofun:
      perl -e '@a=<>; print @a[3..$#a]'
      []s, HTH, Massa

        Whoops. Slurping a file into memory - which is what '@a=<>' will do - is a bad idea unless you know that it's a small file.

        
        -- 
        Human history becomes more and more a race between education and catastrophe. -- HG Wells
        

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://696511]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-19 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found