Lista


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Lista
# 1  
Old 10-28-2010
Lista

Bem, eu tenho 1 arquivo de entrada 'lista.txt' com o nome de 5 arquivos dentro dele.
Esses arquivos são usados na execução de um programa.
Eu preciso de um bash que pegue os nomes dessa lista e jogue nesse programa e gere as saidas dos mesmos.

alguem sabe como fazer?

--------------------------

Well, I have an input file 'list.txt' with the name of five files in it.
These files are used in the execution of a program.
I need a bash to get names on this list and play in this program and manages the outputs thereof.

Anyone know how?

Last edited by Piulres; 10-28-2010 at 02:50 PM..
# 2  
Old 10-28-2010
Assuming there are no blanks in filenames
Code:
while read File
do
   echo $File
   Your_Program $File
done < lista.txt

Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question