- download .tar archive
- unpack it somewhere
- give install.sh rights to run
chmod +x install.sh - run install.sh
./install.sh(require sudo rights)
- if you don't have xmake, install it
сurl installation -Bash <(curl -fsSL https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh) - clone repo
git clone https://github.com/metw0/qsort.git - move into repo's folder
cd qsort/ - build it with xmake
xmake - move binary to /usr/local/bin/
sudo mv qsort /usr/local/bin/
xmake really easy to use, you just need to know 3 flags
this flag is used for declare where qsort gonna sort your files
like /home/user/Documents etc.
this flag is used for declare type of sorting
like name to sort by name, ext to sort by extension and date to sort by last modification date
this flag is used for declare distinctive feature (df)
like some_file_name for name type, .txt for ext type and yyyy-mm-dd for date type
qsort -w /home/user/Documents -t ext --df .txt
this command gonna put all .txt files from directory where you start command
to directory in -w option (/home/user/Documents in this example)
in feature I want to add:
- edit mode, which can delete/create files etc.
if you really like qsort, you can support me just sending feedback <3