I have a few directories and sub-directories containing files with no file extension. I want to add .jpg to all the files contained within these directories. I\
.jpg
this will find files without extension and add your .jpg
find /path -type f -not -name "*.*" -exec mv "{}" "{}".jpg \;