Skip to content

Latest commit

 

History

History
52 lines (29 loc) · 2.18 KB

README.md

File metadata and controls

52 lines (29 loc) · 2.18 KB

Folderize

About

  • 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.

Usage

  • 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]

Example

Suppose you have the following files in the directory D:\Sam\coding\source

Screenshot 2023-07-25 230020

And suppose you want those files except newman.rtf to be in folders with their respective names in the directory D:\Sam\coding\destination

Screenshot 2023-07-25 230338

Open a terminal and navigate to the directory where folderize.sh is located.

aljds

Run the bash program by typing ./folderize.sh D:/Sam/coding/source D:/Sam/coding/destination txt pptx bmp

NOTE: Windows directories use '\' which must be replaced by '/'

ppppp

All files with specified extensions were moved from the source directory

Screenshot 2023-07-25 232115

Each file of specified extension was moved into a folder with its respective name.

Screenshot 2023-07-25 232340

License

This project is licensed under the GNU v-3.0 Affero General Public License

Contributing

I'd appreciate improvements, feel free to open an issue or submit a pull request.

Author

Sk. Sameer Salam @sksameersalam