What is the good way to add file extension \".jpg\" to extension-less files with bash?
You can use rename:
rename 's/(.*)/$1.jpg/' *