Project

regren

0.0
No commit activity in last 3 years
No release in over 3 years
A simple gem for batch renaming files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 4.7.3, ~> 1.3
~> 0

Runtime

>= 0.7.3, ~> 0.7
>= 1.10.1, ~> 1.10
 Project Readme

regren

Gem VersionBuild Status

##Examples This is what you're looking for, right?

$ ls
install53.iso  install54.iso  install55.iso

# basic rename
$ regren -b '(install)(\d\d)' 'i386_\1_\2'
install53.iso
-> i386_install_53.iso
install54.iso
-> i386_install_54.iso
install55.iso
-> i386_install_55.iso
Execute the rename? [y/N] y

$ ls
i386_install_53.iso  i386_install_54.iso  i386_install_55.iso

# show history of file
$ regren -H i386_install_53.iso
i386_install_53.iso
-> install53.iso
-> i386_install_53.iso

# rollback to the files' original names with -r flag
$ regren -r
i386_install_53.iso
-> install53.iso
i386_install_54.iso
-> install54.iso
i386_install_55.iso
-> install55.iso

# copy .backup file to another folder containing for example install54.iso
# run with -R flag to reapply renames to this file
$ regren -R
install54.iso
-> i386_install_54.iso
Execute the rename? [y/N] y