Skip to content

moltenib/file-sequencer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 

Repository files navigation

file-sequencer

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

About

A shell script to rename files in a sequence.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages