Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: file handling

by runrig (Abbot)
on Jul 09, 2008 at 18:21 UTC ( [id://696515]=note: print w/replies, xml ) Need Help??


in reply to Re: file handling
in thread file handling

Even easier:
/usr/bin/tail +3 your_input_file

Replies are listed 'Best First'.
Re^3: file handling
by massa (Hermit) on Jul 09, 2008 at 19:38 UTC
    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://696515]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-24 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found