- or download this
$ echo "hello" > data1
$ echo "world" > data2
...
$ < $file | wc -l
bash: $file: ambiguous redirect
0
- or download this
FILES="file1 file2 file3 file4 file5"
for file in $FILES
do ... something with $file ...
done
- or download this
paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin'
paths="$paths /opt/bin /opt/local/bin /opt/local /opt/lbin"
...
*) test -d $p && PATH=$PATH$p_$p ;;
esac
done