Post

More file renaming fun

One tool that made my life easier when I recently discovered it: 'rename'. It allows you to specify a sed-like command line to easily search/replace part of file names like this:

1
rename s/"SEARCH"/"REPLACE"/g *.txt

Of course it also works for files in subdirs if you use none globbing like this

1
rename s/"SEARCH"/"REPLACE"/g */*.txt
This post is licensed under CC BY 4.0 by the author.