What is the good way to add file extension ".jpg" to extension-less files with bash?
for f in *.jpg; do mv "$f" "${f%.jpg}"; done for f in *; do mv "$f" "$f.jpg"; done
548k questions
547k answers
4 comments
86.3k users