14387 shaares
5333 private links
5333 private links
find . -iname "foo*" | while read f
do
# ... loop body
done
Alternate:
$ for x in *; do echo "file: '${x}'"; done
or
for x in *
do
echo "file: '${x}'"
done
find . -iname "foo*" | while read f
do
# ... loop body
done
Alternate:
$ for x in *; do echo "file: '${x}'"; done
or
for x in *
do
echo "file: '${x}'"
done