


This will also replace the file with the command's output, which is useful for commands besides mv. This will pipe the whole buffer to the system command bash, thus executing all of the move commands. Sure there are utilities that may do this better, but Vim is always available and that's one less thing you have to remember.Īn alternative method of executing the commands is: So if you started with a list of 100 file names, it will execute 100 mv commands. The reason this works is Vim writes a file line-by-line. You can use any Vim features here ( macros are useful), as long as each line results in a valid shell command. Note: In case the file name contains space character, it should be surrounded with quotes. To substitute certain text in the filename: We need to change each line to be a valid stand-alone shell command.įor example, to rename the files to lowercase: In Vim you now have one file name per line.

Vim will open, displaying a list of file names. The backslash tells your shell to disregard any aliases for ls we need plain output with no color. It was the first time i actually had a problem with clrmame pro.Starting at a shell prompt, you can send a list of file names to the standard input of Vim by entering: Not sure what the problem was though since i had done the exact same thing with a hyperlist database XML for nintendo ds with clrmame pro and then i had left the rom extensions intact inside the zip. (If the extension got removed i had problems loading the roms) afterwards i zipped each file again using winrar. So what i did then was extract all zips in a new directory and then used dons-hyperspin-tools with CRC checking only it renamed the roms correctly and left the file extensions intact. Could be it had to do with the xml file i used (came from hyperlist of hyperspin because i'm using motionblue image). the roms were all named incorrectly and when using clrmamepro to rename the zips it had renamed all zips correctly as well as the (root) filename inside the zip but had removed all extensions for the files inside the zip for some reason. Clrmame pro for me, even for none mame sets.Īlthough i have to admit i had one problem with clrmamepro the other day with a goodgb64 (commdore 64) set i had downloaded.
