Parser. Help='Top folder for the replacement operation', Parser = argparse.ArgumentParser(description='Recursive file name renaming with regex support') # (assuming two digits at the beginning and a 3 character extension # rename "12-lovely-spam.txt" to "lovely-spam-12.txt" \1, \2 etc) are supported too: # rename "spam.txt" to "spam-spam-spam.py" # only replace 'foo' at the beginning of the filename Renamer requires macOS Monterey 12 or higher. You'll love the beautiful user interface, the useful new enhancements that make batch file renaming even easier, and of course the many ways to rename files. Simplest usage: # replace all occurences of 'foo' with 'bar' Renamer is a batch file renaming app for macOS that allows you to rename lots of files quickly and conveniently. Use -w to actually write changes when you are satisfied with the dry run result, -s to suppress displaying non-matching files -h or -help will show usage notes. My take on a friendly recursive regex file name renamer which by default only emulates the replacement and shows what the resulting file names would be.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |