dimanche 22 mars 2015

Input in bash script


I have a script like this:



for i in *.TF;
do
my command $i
done


The problem is , each command line needs a same input (in this case: /PS) how can I do this ? I have tested some methods like:



/PS | ./mybash.csh


It only works in first iteration.



Aucun commentaire:

Enregistrer un commentaire