Need a shell script written
I need a bash script that could do the following things:
1) Sort the files in a folder according to their extension. For example if i run the script like this: .sort.sh jpg gif
then it would create a jpg and a gif folder and move the files to the right folder.
2) The script also needs to create a log file with the list of the moved files and the name of the folders where each file were moved.
3) If i run the script without specifying the extensions, then it should show short how to use message.
I also need the same scrip written in Powershell. Please check out my other gig if your interested.
Experience with Shell Script