Example commands:
rmv train_dir # moves 50% of files in the current directory to train_dir
rmv -g "*.jpg" test_dir # moves 50% of jpgs in the current directory to test_dir
rmv -p 70 ~/downloads # moves 70% of files in the current directory to ~/downloadsUsage:
usage: rmv [-h] [-p PERCENT] [-g GLOB] [source] dest
Randomly moves files to a directory
positional arguments:
source
dest
optional arguments:
-h, --help show this help message and exit
-p PERCENT, --percent PERCENT
The percent of the directory to move, default is 50
-g GLOB, --glob GLOB filters the list of files to move