Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2023-03-23 01:29 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (60 votes). Check out past polls.