10

Organize file according to their extension

view full story
linux-howto

http://www.unix.com – Hi Everyone ! i want to make an application which is written in shell script and in Bourne shell (sh) i want, when my script is executed, it read all the files in the directly and move them to folders according to their extension. suppose i have a files: test.txt test.jpg test.docx test.tgz all files txt goes to directory txt, jpg extention files goes to folder jpg and same the docx files to docx directory, while the achive files go to archive directory and in the archive directory, it creates directory as test (basename) and unpack the files in test directory. any idea will be apprecia (HowTos)