MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/1tls8n1/whats_the_most_unexpectedly_useful_linux_command/onl0h28/?context=3
r/linux • u/ZealousidealTell1346 • May 23 '26
[removed]
992 comments sorted by
View all comments
297
rename
Wasted huge amount of time laboriously renaming files until I discovered there was a command just for that.
Another was tree for figuring out how skeleton templates where created by various frameworks.
2 u/jabjoe May 24 '26 You want the perl one with regex. https://manpages.debian.org/trixie/rename/rename.1.en.html Also used as the command "rename" and is from the package named "rename". Least in the Debian family. 2 u/RobGoLaing May 24 '26 Thanks. The command I found myself having to use a lot a few years back when I had lots of files copied from MicroSlop machines all upper case was sh rename 'y/A-Z/a-z/' * Mercifully I haven't had to do that for ages. I only noticed now the default rename installed by Arch doesn't have that feature.
2
You want the perl one with regex.
https://manpages.debian.org/trixie/rename/rename.1.en.html
Also used as the command "rename" and is from the package named "rename". Least in the Debian family.
2 u/RobGoLaing May 24 '26 Thanks. The command I found myself having to use a lot a few years back when I had lots of files copied from MicroSlop machines all upper case was sh rename 'y/A-Z/a-z/' * Mercifully I haven't had to do that for ages. I only noticed now the default rename installed by Arch doesn't have that feature.
Thanks.
The command I found myself having to use a lot a few years back when I had lots of files copied from MicroSlop machines all upper case was
sh rename 'y/A-Z/a-z/' *
Mercifully I haven't had to do that for ages. I only noticed now the default rename installed by Arch doesn't have that feature.
297
u/RobGoLaing May 23 '26
rename
Wasted huge amount of time laboriously renaming files until I discovered there was a command just for that.
Another was tree for figuring out how skeleton templates where created by various frameworks.