Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Read file line by line - Shell Scr
Name: Sanjay Date: September 23, 2002 at 14:28:04 Pacific OS: Linux CPU/Ram: Pentium
Comment:
Hi,
Can anyone tell me how to read a text file line by line in a shell prog?
Summary: Thanks for the solution. I prefer not using AWK or Perl so I struggled on. I found the following solution: [code] cat filename| while read line do script $line done [/code] Cat reads the file line b...
Summary: I'm a Unix newb here, I have an assignment due soon and I have to know how to go through a file line by line to get it done. Now I think I have most of it done, I cat the file out, then pipe it to cu...
Summary: FishMonger, Thanks for reply, Yes i am aksing one script that is shell or perl which will get the path for each file where my NFC is placed,.Ok we will write perl script only which will reads files fr...