Skip to content

d4vidlinux/file_organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Simple file organizer

A script to organize files on your Linux system, providing efficiency and simplicity for those who want to increase organization.

The script moves files with the following formats: txt, xlsx, docx, pptx.

    # Default script configuration 
    bash organizer.sh
    # Using flags to specify input and output directories 
    bash organizer.sh -d /home/user/ -o /home/user/Documents

🤖 Features

  • Automatic file organization

  • Uses mkdir to create folders

  • Uses mv to move files into the correct folders

  • Help page (-h flag)

  • Easy to maintain

    Usage Format: bash $0 [options]

    Default Input: /home/user/*/

    Default Output: /home/user/Documents/

    Options:

        -h, --help         Show help
        -d, --directory    Directory (input)
        -o, --output       Directory (Output)
        --version          Show Version

  • -h Show help.
  • -d The directory containing the files you want to move.
  • -o Output directory (your files will be moved here)
  • --version Show the current version

🚀 Usage

  1. Clone the repository:
    git clone https://github.com/d4vidlinux/file_organizer.git
    cd file_organizer
  1. Give execute permission:
    chmod +x organizer.sh
  1. Execute
    ./organizer.sh

⚠️ Warning

This is a prototype created for learning bash. It is designed to be easy to maintain and understand. Don't use "/" in the -o flag, only in the -d flag.

About

Automatic file organizer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages