Python Script: Sorts files in the directory by creating folders either by name or type of files and then moving the files to the appropriate folders.
I am a beginner programmer and this is my first script that I publish on Github. It's a small project for myself and others. I think I will develop the script further. Feel free to give me feedback and suggestions for improvement. Thanks :)
git clone https://github.com/SweetChilli1/Sort.py.git
cd Sort.pymv Sort.py ~/.local/bin/ && cd ~/.local/binchmod +x Sort.py
mv Sort.py Sorthash -rType the command 'Sort', (capital letter at the beginning) and the script will be executed in the current directory
Help list:
Sort -hBasic use:
SortSort files by name:
Sort -nSort files in another directory:
Sort -d <~/example/directory>