jualin
November 15th, 2009, 06:13 PM
I have some video files all ending in .wmv .mov .mpg. I have music files ending in .mp3 .wma. And finally I have some text files all end in the extension .txt
I would like to write a shell script that will generate subfolders, one for the music files, one for the video files, and one for the text files, and then organize all of the files into the correct subfolders.
I would like the script to be interactive so it can prompt the user to make sure that he/she wants to continue with the reorganization.
And finally I would like the script to write a log file that contains, for each file, the original file name, as well as the new file path/name it was moved to.
I would like to run this script from the same folder as all of the unorganized files.
Any ideas of how to do that? :guitar:
Thank you in advance!
I would like to write a shell script that will generate subfolders, one for the music files, one for the video files, and one for the text files, and then organize all of the files into the correct subfolders.
I would like the script to be interactive so it can prompt the user to make sure that he/she wants to continue with the reorganization.
And finally I would like the script to write a log file that contains, for each file, the original file name, as well as the new file path/name it was moved to.
I would like to run this script from the same folder as all of the unorganized files.
Any ideas of how to do that? :guitar:
Thank you in advance!