Extract text from file and save as individual file

view story

http://www.unix.com – Dear All I am using the following shell script to extract the columns from the file. <code> for filename in *.rpt do awk -F"\t" ' BEGIN {OFS="|"} FNR > 0 {print $1,$2,$3,$5,FILENAME} ' $filename >> output.txt done </code> However, the script works fine. Instead of saving the single output file, I want to modify the script so that it saves as individual files. Kindly advice. Many Thanks Balaji (HowTos)