13

using records iteratively with increament

view full story
linux-howto

http://www.unix.com – I am very new to unix. Trying to use a for loop for this task I have a file like this Code: abc.uml ccc.uml ddd.uml rrr.uml kkk.uml . . . n.uml ( more than 10000) I want to read this file but just 5 names at a time and then again it should read next 5 names and agin next 5. this should go on till the end of file. What ever it read it should be directed in the output file. The code I am using Code: for i in `cat input_file` ; doecho $i done The output should be Code: hello there abc.uml                 (HowTos)