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. Just in case, /PS is some text (input) and I want feed it as input to each iteration of my command.
/PS
a program or some text? Do you want to feed that as input to each iteration ofmy command
? – roaima Mar 22 at 8:56echo /PS
? – Skaperen Mar 22 at 10:34