http://www.perlmonks.org?node_id=992862


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