Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Help with problem (CUTTING TEXT FILES)

by aaron_baugher (Curate)
on May 23, 2012 at 20:08 UTC ( #972096=note: print w/replies, xml ) Need Help??


in reply to Re^2: Help with problem (CUTTING TEXT FILES)
in thread Help with problem

Thanks! Here's that command line explained bit by bit:

grep grep for -v lines that DO NOT match ^$ an empty line (begin and end with nothing between) inputfile in the file "inputfile" | pipe the results to split the split program, which divides up a file -d naming the output files with digits -l 300000 and putting 300000 lines in each - getting the input from stdin (the pipe) outputfile and naming the output files starting with outputfile (fol +lowed by digits)

Aaron B.
Available for small or large Perl jobs; see my home node.

Replies are listed 'Best First'.
Re^4: Help with problem (CUTTING TEXT FILES)
by Anonymous Monk on May 24, 2012 at 00:50 UTC
    ack -v "^\s*$" | split ...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2023-02-08 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (42 votes). Check out past polls.

    Notices?