- This bash script organizes your files with specified extensions by moving them into folders with their respective names.
- If a folder with the file’s name does not exist, the script will create one.
- Useful to manage files that are scattered in a directory haphazardly and not stored in proper folders.
- Download the folderize.sh script from this repository.
- Navigate to the directory where folderize.sh is located.
- In a terminal run the program by typing ./folderize.sh /path/to/src /path/to/dest [extension1] [extension2] [extension3]
Suppose you have the following files in the directory D:\Sam\coding\source
And suppose you want those files except newman.rtf to be in folders with their respective names in the directory D:\Sam\coding\destination
Open a terminal and navigate to the directory where folderize.sh is located.
Run the bash program by typing ./folderize.sh D:/Sam/coding/source D:/Sam/coding/destination txt pptx bmp
All files with specified extensions were moved from the source directory
Each file of specified extension was moved into a folder with its respective name.
This project is licensed under the GNU v-3.0 Affero General Public License
I'd appreciate improvements, feel free to open an issue or submit a pull request.
Sk. Sameer Salam @sksameersalam