![]() ![]() Paths containing newlines are explicitly unsupported.Abort (do not rename anything) if the editor exits with error.Abort if cannot determine a suitable editor. ![]() According to man bash, READLINE commands try $VISUAL or else $EDITOR -> looks like a good example to follow.Use the names specified as command line arguments, or else the files and directories in the current directory (resolve *).Why: if you need to perform some complex renames that are not easy to formulate with patterns (as with the utility), it might be handy to be able to edit the list of names in a text editor, where you will see the exact names you will get. Inspired by a recent question to rename files by editing the list of names in an editor, I put together a similar script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |