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
In reply to print line to file on win32 by sans-clue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |