Hacker News new | ask | show | jobs
by thwarted 479 days ago
There's probably a program in /usr/bin on your machine that does that.
2 comments

Such as /usr/bin/bash!

More seriously rename (sometimes rename.ul) is built to do (some) of this task, and you may have some others depending how "featureful" your install is, but why bother for a one time task when it's not going to be more work to figure out what tool to use, what options it needs, and what parts will still need to be done after anyways?

Honestly this is just a great task for a script, even if you were going to hand write it. It'll be clearer, rely on fewer assumptions, and be more flexible if the task needs to change as you try to do it and notice something else.

I'm sure there is! What is the best way to find it? I'd likely google some type of query to find out if it exists and how I might use it.

Anything more than one query/line of text and one click is more than it would take to get a llm to write this.