Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AfzGit/dext
Sort files into directories based on file extensions
https://github.com/AfzGit/dext
Last synced: about 2 months ago
JSON representation
Sort files into directories based on file extensions
- Host: GitHub
- URL: https://github.com/AfzGit/dext
- Owner: AfzGit
- License: gpl-3.0
- Created: 2022-12-10T02:00:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-23T05:12:18.000Z (about 1 year ago)
- Last Synced: 2024-01-27T10:33:46.599Z (5 months ago)
- Language: Shell
- Homepage:
- Size: 2.63 MB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- cli-apps - Dext - (Directories by Extensions) is a script that moves (or copies) files of the same extension into a folder. (<a name="file-dir-cleanup"></a>Clean up of files and directories)
- awesome-cli-apps - Dext - (Directories by Extensions) is a script that moves (or copies) files of the same extension into a folder. (<a name="file-dir-cleanup"></a>Clean up of files and directories)
README
# Table of Contents
1. [About](#org673d72e)
2. [Requirements](#orge32e026)
3. [Installation](#orgec4e642)
4. [Usage](#orge79668d)
5. [Examples](#org3486f9e)# 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
``` sh
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 runNote: I am not responsible for any damages you encounter using this script