Renames files to make a sequence with them, in the order in which they were passed as arguments.
Usage: run ./file-sequencer --help
# This will rename every 'txt' file to a sequence of 01.txt, 02.txt and up
./file-sequencer '%02d.txt' new_dir *.txt
# This will sort them by date so that the oldest file becomes '01.txt' and so on
ls -tr *.txt | xargs ./file-sequencer '%02d.txt' new_dir
To see the newly copied files in the last example, do:
cd new_dir
ls