How to read a file using unix script

April 27, 2009 at 02:39:49
Specs: Windows XP
I have refernce file with some data in it



and I have to write a script in unix such that for the first time the script has to take first line as a variabe or as an input and do spcifile task...and after finishing for the firt line it has to go for the second line and do the same tasks and same for the third line and fourth line also...

That reference file can be like below also:


aaaa bbbb cccc dddd

Can somebody help me on this...I have very basic knowledge on unix scripting.... :-(


See More: How to read a file using unix script

Report •

April 27, 2009 at 04:04:38
you can use a while read loop. Please read up the bash manual for info. Google for "Advanced Bash" and read the manual

Unix Win32 tools | Gawk for Windows

Report •
Related Solutions

Ask Question