Computing.Net > Forums > Unix > read from file in shell script

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 from file in shell script

Reply to Message Icon

Name: Mel
Date: September 13, 2002 at 10:56:59 Pacific
OS: unix
CPU/Ram: solaris
Comment:

Hi guys,
i have a file inside file file name are stored 1 filename per line i want to open the file and read each line from the file and process it...how should i do it in shell script...your help will be appreciated

Thx



Sponsored Link
Ads by Google

Response Number 1
Name: ASB
Date: September 13, 2002 at 11:11:30 Pacific
Reply:

for file in `cat list_files`
do
..... Proccess $file
done


0

Response Number 2
Name: Mel
Date: September 13, 2002 at 15:04:43 Pacific
Reply:

Hey ASB Thx It worked!!!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: read from file in shell script

reading files in shell scripts www.computing.net/answers/unix/reading-files-in-shell-scripts/4380.html

Using hex-code in shell script www.computing.net/answers/unix/using-hexcode-in-shell-script/4227.html

loops in shell scripts!!! www.computing.net/answers/unix/loops-in-shell-scripts/5140.html