

įor i in * do mv $i $(echo $i | cut -d _ -f 2-) done mass renaming is also made easy with bash. really, that's why i love these forums so much. with the information you gave me, i can perform most of the batch renaming tasks i need to do, and i have a base from which to do more (finally a reason to learn some regex!). I usually prefer doing stuff on the commandline, and i don't mind the learning curve, it's just that right in the beginning i usually don't know where to start. "~/*" wildcard match of everything in your home direcory.įor regular expressions, man 8 regex is your friend. "/g" delimiter, "replace all occurances in the file name" "\ ": pattern to match - an escaped space character "-s": replace a regex pattern in a filename with another

To get rid of spaces in fielnames in your home directory: To lowercase all files in your documents directory recursively:

If you're satisfied with the output drop the -t switch. yes -no force to choose YES or NO when target existsĪll these use the -t switch is "test" or just print what would be done. V, -version output version information and exit o, -owner OWNER change file's owner (superuser only) R, -recursive operate on files and directories recursively s/PATTERN/STRING replace matching PATTERN with STRING, is Rename SOURCE to DEST, or substitute characters match the specified pattern I use it constantly and find it much simpler to use than krename. Rename (the one in portage) is one of the slickest, most effective and easy to use cli apps there is. If you loved me, you'd all kill yourselves today. Posted: Mon 10:29 pm Post subject: batch rename tool (GUI)īasically i need a non-qt alternative to krename.Īlternatively i could also do with an easy explanation of command line rename or similar.īTW: i noticed that the command rename is part of the system base, but there is also a rename in portage (its ~, tho). Gentoo Forums Forum Index Desktop Environments Gentoo Forums :: View topic - batch rename tool (GUI)
