set goo = `ls ./* | awk '{print $0}'` set poo = `echo $#goo` while($poo) echo "******************************" | tee -a all_files.txt echo $goo[$poo] | tee -a all_files.txt echo " -- " | tee -a all_files.txt cat $goo[$poo] | tee -a all_files.txt set poo = `echo $poo | awk '{print ($1 - 1)}'` end