The constant feeling of messy files (especially in Downloads folder) annoys everyone. script will look for the extensions of the files in the folder and organize them accordingly into 7 sections:
- text
- data
- audio
- video
- images
- archives
- developer
if no extension was found, then it throws the file into filder called 'other'.
Text extensions:
'txt' 'doc' 'docx' 'log' 'msg' 'odt'
'pages''rtf' 'tex' 'wpd' 'wps'
Data extensions:
'csv' 'dat' 'ged' 'key' 'keychain' 'pps' 'ppt' 'pptx' 'sdf'
'tar' 'tax2016' 'vcf' 'xml' 'xlr' 'xls' 'xlsx'
Audio extensions:
'3g2' '3gp' 'asf' 'avi' 'flv' 'm4v' 'mov' 'mp4'
'mpg' 'rm' 'srt' 'swf' 'vob' 'wmv'
Image extensions:
'3dm' '3ds' 'max' 'obj' 'bmp' 'dds' 'gif' 'jpg' 'png'
'psd' 'pspimage' 'tga' 'thm' 'tif' 'tiff' 'yuv' 'ai' 'svg'
Archives extensions:
'7z' 'cbr' 'deb' 'gz' 'pkg' 'rar' 'rpm'
'sitx' 'tar' 'gz' 'zip' 'zipx'
Developer extensions:
'c' 'javac' 'cpp' 'cs' 'dtd' 'fla' 'h' 'java' 'lua' 'm'
'pl' 'py' 'sh' 'sln' 'swift' 'vb' 'vcxproj' 'xcodeproj'
- Unfortunately Bash below version 4 does not support (,, for lower case, so I had to add the extensions both with capital and lower case letters)
- Have to add few lines so you can run the code through passing a path