splitting newfile.txt file and executing each splitted files

view full story

http://www.unix.com – split -l $split_count newfile.txt for i in $split_files* do if test -s $workingdir/$split_files* then ./<$i.out> fi done 1.split the newfile.txt file into multiple files using split cmd(say splitcount=50) 2. check if content of the split files is empty or not 3. If it is not empty execute the file (HowTos)