Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Simultaneous one by one splitting and processing of an uneven file based on a pattern

by zing (Beadle)
on Sep 10, 2012 at 21:55 UTC ( #992862=note: print w/ replies, xml ) Need Help??


in reply to Re: Simultaneous one by one splitting and processing of an uneven file based on a pattern
in thread Simultaneous one by one splitting and processing of an uneven file based on a pattern

Yes I did tried these two codes, but they dont cater to the triplet selection perl -ne 'BEGIN{ $/="Processing"; } if(/^\s*(\S+)/){ open(F,">$1.out")||warn"$1 write failed:$!\n";chomp;print F "gi", $_ }'

awk -vRS="Processing" '{ print $0 > "file"t++".out" }' file.txt


Comment on Re^2: Simultaneous one by one splitting and processing of an uneven file based on a pattern
Select or Download Code
Re^3: Simultaneous one by one splitting and processing of an uneven file based on a pattern
by GrandFather (Cardinal) on Sep 10, 2012 at 22:15 UTC

    And that relates to the pseudo code you gave how? Show some effort. Take the time to write good code. Avoiding typing a few characters (for names) does not save time. Asking someone to write the code for you also does not save time. If you understand the problem well enough to describe it, you understand it well enough to code it. If you don't understand the problem how are you going to describe it well enough to someone else to have it implemented? Now, pull your finger out and get busy.

    True laziness is hard work

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2014-08-22 23:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls