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
1.4m articles
1.4m replys
5 comments
57.0k users