Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 ( [id://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

Replies are listed 'Best First'.
Re^3: Simultaneous one by one splitting and processing of an uneven file based on a pattern
by GrandFather (Saint) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://992862]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found