The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 12-02-2005
mgirinath mgirinath is offline
Registered User
 

Join Date: May 2005
Posts: 68
Lightbulb Parameter from result of a script

Hi,

I have a situation where I need a parameter value to pick from a file can I use it in this way
File_name.txt contains names of files
a.jpg
b.jpg
c.jpg
now I want to assign the file name to parameter
FTP_INPUT_FILE=a.jpg for first run once it is processed we can delete onve they are processed...so that I dont have to loop it and then track it....
FTP_INPUT_FILE=b.jpg so on...
I can think of this....
FTP_INPUT_FILE=`head -1 File_name.txt` will this work???
and one more thins is once I process it how to delete the record...?
so once I process first record my file should have only 2 records
File_name.txt
b.jpg
c.jpg

anybody please help...

Thanks,

Girinath
Reply With Quote
Forum Sponsor