I have a very basic bash shell script, which has many "while... done; for .... done" loop clauses, like the following
~~
#!/bin/bash
while blablalba; do
....
done < /tmp/file
for line in `cat blablabla`; do grep $line /tmp/raw ; done > /tmp/1;
while blablalba2; do
....
done < /tmp/file2
~~
I noticed there are some loop conditions will never be executed, for example,
"for line in `cat blablabla`; do grep $line /tmp/raw ; done > /tmp/1;"
I am sure all the the loop clauses are right, since I can execute them without problem in command line, so whats wrong with my script? what should I pay attention?
Thanks!