Loops
Loop over regular files in directory
for f in *; do
echo "File -> $f"
done
Loop over all files in directory (inc. dotfiles)
for f in $(ls -a ~/Documents); do
echo "Processing $f file.."
done
for f in *; do
echo "File -> $f"
done
for f in $(ls -a ~/Documents); do
echo "Processing $f file.."
done