: ( .)
find . -type f -exec mv '{}' '{}'.jpg \;
Explanation: this recursively finds all files (-type f), starting from the current directory (.) And applies the move (mv) command to each of them. Also note the quotes around {} so that file names with spaces (and even newlines ...) are handled correctly.
source
share