![]() 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 Pull down the Go menu and select Go To Folder, or hit Command Shift G to bring up Go To Folder Enter the following directory path: /Library/Caches/Desktop Pictures/ In this directory you’ll find a hexadecimal folder UUID name, something like 84C3B4814B3CA826140DB1, open that directory and you should find a ‘lockscreen. # 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 Simplest usage: # replace all occurences of 'foo' with 'bar' 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 |