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

read from file in shell script

Reply to Message Icon

Original Message
Name: Mel
Date: September 13, 2002 at 10:56:59 Pacific
Subject: read from file in shell script
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


Report Offensive Message For Removal


Response Number 1
Name: ASB
Date: September 13, 2002 at 11:11:30 Pacific
Subject: read from file in shell script
Reply: (edit)

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


Report Offensive Follow Up For Removal

Response Number 2
Name: Mel
Date: September 13, 2002 at 15:04:43 Pacific
Subject: read from file in shell script
Reply: (edit)

Hey ASB Thx It worked!!!


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: read from file in shell script

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software