Iterates of files in a directory

for file in /dir/*
do
  echo "$file"
done

Same but in one line:

for f in *; do echo "$f";done