find . -type f -not -name "*.*" -exec bash -c 'if [ $(file --mime-type -b {}) == "image/jpeg" ]; then mv {} {}.jpg; fi;' \;; find . -type f -not -name "*.*" -exec bash -c 'if [ $(file --mime-type -b {}) == "image/png" ]; then mv {} {}.png; fi;' \;; find . -type f -not -name "*.*" -exec bash -c 'if [ $(file --mime-type -b {}) == "image/gif" ]; then mv {} {}.gif; fi;' \;; find . -type f -not -name "*.*" -exec bash -c 'if [ $(file --mime-type -b {}) == "text/plain" ]; then mv {} {}.txt; fi;' \;; find . -type f -not -name "*.*" -exec bash -c 'if [ $(file --mime-type -b {}) == "application/json" ]; then mv {} {}.json; fi;' \;; find . -type f -not -name "*.*" -exec bash -c 'if [ $(file --mime-type -b {}) == "text/x-java" ]; then mv {} {}.txt; fi;' \;; find . -type f -not -name "*.*" -exec bash -c 'if [ $(file --mime-type -b {}) == "application/x-shockwave-flash" ]; then mv {} {}.swf; fi;' \;; find . -type f -not -name "*.*" -exec bash -c 'if [ $(file --mime-type -b {}) == "application/x-dosexec" ]; then mv {} {}.exe; fi;' \;; find . -type f -not -name "*.*" -exec bash -c 'if [ $(file --mime-type -b {}) == "application/vnd.ms-outlook" ]; then mv {} {}.ms-outlook; fi;' \;; find . -type f -not -name "*.*" -exec bash -c 'if [ $(file --mime-type -b {}) == "application/zlib" ]; then mv {} {}.zst; fi;' \;; find . -type f -not -name "*.*" -exec bash -c 'if [ $(file --mime-type -b {}) == "text/html" ]; then mv {} {}.htm; fi;' \;