You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sortfiles 1.6KB

12345678910111213141516
  1. #!/bin/bash
  2. find /riddlebox/Downloads/ -regextype posix-egrep -regex ".*\.(jpg|png|gif|jpeg|svg|tga|psd|jpe|bmp)$" -exec mv -n -t /riddlebox/miscimgs {} +
  3. find /riddlebox/Downloads/ -regextype posix-egrep -regex ".*\.(deb|run|bin|rpm|sh|py)$" -exec mv -n -t /riddlebox/misc {} +
  4. find /riddlebox/Downloads/ -regextype posix-egrep -regex ".*\.(diff|patch)$" -exec mv -n -t /riddlebox/misc {} +
  5. find /riddlebox/Downloads/ -name "*.torrent" -exec mv -n -t /riddlebox/rt/watch {} +
  6. find /riddlebox/Downloads/ -name "*.apk" -exec mv -n -t /riddlebox/bin/android {} +
  7. find /riddlebox/Downloads/ -name "*.jar" -exec mv -n -t /riddlebox/bin/java {} +
  8. find /riddlebox/Downloads/ -name "*.iso" -exec mv -n -t /riddlebox/misc {} +
  9. find /riddlebox/Downloads/ -name "*.swf" -exec mv -n -t /riddlebox/misc {} +
  10. find /riddlebox/Downloads/ -regextype posix-egrep -regex ".*\.(tar|zip|7z|rar|gz|xz|bz2|tgz)$" -exec mv -n -t /riddlebox/misc {} +
  11. find /riddlebox/Downloads/ -regextype posix-egrep -regex ".*\.(pdf|djvu|txt|doc|docx|fb2|epub|rtf)$" -exec mv -n -t /riddlebox/Text\ and\ Comics {} +
  12. find /riddlebox/Downloads/ -regextype posix-egrep -regex ".*\.(html|htm|mht|mhtml|chm|maff)$" -exec mv -n -t /riddlebox/Text\ and\ Comics/pages {} +
  13. find /riddlebox/Downloads/ -regextype posix-egrep -regex ".*\.(ttf|otf|woff)$" -exec mv -n -t /riddlebox/misc {} +
  14. find /riddlebox/Downloads/ -regextype posix-egrep -regex ".*\.(m4v|flv|mp4|avi|mkv|mov|webm|wmv)$" -exec mv -n -t /riddlebox/Vidoes {} +
  15. find /riddlebox/Downloads/ -regextype posix-egrep -regex ".*\.(mp3|ogg|flac|sid|xm)$" -exec mv -n -t /riddlebox/Music {} +
  16. exit 0