![]() Replace with: \,(format "P%04d. M-x replace-regexp (that is Alt+x followed by the string "replace-regexp" typed in the minibuffer at the bottom of the screen). This is just an excerzie in me learning some bash, so it may not be entirely ideal to add. ![]() ![]() leading the filenames, -aFewMoreIHaventTHoughtOf. I plan on adding -convertspaces to change ' ' to '' and -uppercase, -sequence ( to add 1. In the Find field, type montly in Replace With, type monthly. Here is my final script in case anyone on Mac OS X Lion or probably lower is looking for this ability. Choose Replace Text from the pop-up menu. You may even chose to replace the filenames using regular expressions (note that unfortunately Emacs uses a different syntax than PCRE).įor example, to rename files with counter (starting by 1): Select the target files and choose File > Rename Items. ![]() You can now edit the filenames like editing text in every plain text editor. Even if you don't use Emacs that often you may find Dired a handy tool.Ĭ-x C-q (that is Ctrl+x followed by Ctrl+q) If you are familiar with Emacs, I think nothing beats Dired for this task. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |