![]() If you have lots of files to rename, then ReName is a really good application that is fairly lightweight, but packs a mean punch in the batch processing dept. ![]() Additionally, it has the ability to rename folders, process regular expressions, and it supports a variety of meta tags, such as: ID3v1, ID3v2, EXIF, OLE, AVI, MD5, CRC32, and SHA1. With ReNamer you can combine multiple renaming actions as a rule set, applying each action in a logical sequence, which can then be saved, loaded, and managed within the application. Right click on the folders, and select the rename command. Recently, I had the need to use it on a different computer, and instead of just a one-off copy/paste, I actually added it to my main set of portable commands, phxutils.ReNamer is a lightweight and flexible batch file renaming tool that offers standard users the usual renaming features, including prefixes, suffixes, replacements, and case changes, as well as the ability to remove contents of brackets, add number sequences, and change file extensions.įor power users, there is also a PascalScript rule, which allows users to program their own renaming rules. Navigate to the folder location which contains the files you want to remain. ![]() I actually wrote that command for this specific use case, which I encounter frequently and have been using it as a bash/ zsh function for a long time, which I named chext: chext() /")" I realize OP tagged bash specifically, and for that reason, the accepted answer will work just fine, but if you wanted to use this command in a shell script on a system using sh or dash, you could use the version I posted above, which utilizes any version of sed (GNU/BSD/anything), and will work just fine, while not relying specifically on bash itself. ![]() You can go here to see all the reasons why this method is better than all the other answers, but basically, the accepted answer is not POSIX-compliant since it relies on bash parameter expansion. I am posting this because I have not seen another answer that details this method and why it could potentially be superior to the accepted answer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |