Skip to content
/ dext Public

Sort files into directories based on file extensions

License

Notifications You must be signed in to change notification settings

AfzGit/dext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

Table of Contents

  1. About
  2. Requirements
  3. Installation
  4. Usage
  5. Examples

About

Dext (Directories by Extensions) is a script that moves (or copies) files of the same extension into a folder.

The main goal of this script is to make sense out of large number of messy and unorganized files by sorting them (according to their file extensions) in folders.

Dext moves files by default unless copy option is provided (-c).

Requirements

  • curl (only for installation)
    • Debian
      • sudo apt install curl
    • Arch
      • sudo pacman -S curl
  • sed
    • Debian
      • sudo apt install sed
    • Arch
      • sudo pacman -S sed

Installation

  • Using curl
    curl https://raw.githubusercontent.com/AfzGit/dext/main/dext --output dext
    chmod a+x dext
    sudo mv dext /usr/bin/

Usage

  • USAGE:

    • dext [OPTIONS]
    • dext [OPTIONS] DIRECTORY
  • OPTIONS:

    • -h Show this help message
    • -u Show total Unique extension
    • -v Verbose mode
    • -i Interactive mode
    • -c Copy mode (default is Move)
    • -d Dry run
    • -f Force move/copy files (no prompts)

Examples

  • dext ~/Downloads/
    • Move files into directories based on file extensions
  • dext -i -v -c ~/Downloads/
    • Enable Interactive and Verbose Copy
  • dext -f ~/Downloads/
    • Force move
  • dext -f -c ~/Downloads/
    • Force copy
  • dext -d ~/Downloads/
    • Dry run

Note: I am not responsible for any damages you encounter using this script

About

Sort files into directories based on file extensions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages