sans-clue has asked for the wisdom of the Perl Monks concerning the following question:
I need to have each 'lyne' output to an individual fileforeach $lyne (@lines){ printf $lyne\n; }
set RANDOM x=$RANDOM for lyne in `cat somefile (assume no spaces)` ; do echo $lyne > prefix$x.txt x=`expr $x + 1` done
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print line to file on win32
by halley (Prior) on Oct 29, 2007 at 18:21 UTC | |
by sans-clue (Beadle) on Oct 29, 2007 at 19:32 UTC | |
by ikegami (Patriarch) on Oct 29, 2007 at 19:50 UTC | |
|
Re: print line to file on win32
by ikegami (Patriarch) on Oct 29, 2007 at 18:24 UTC | |
|
Re: print line to file on win32
by moritz (Cardinal) on Oct 29, 2007 at 18:23 UTC |