The fan of old-school tools
strikes again. (NANY 2019, anyone?)
Do you know what's missing in both POSIX and Windows? Right: A sane way to rename files/directories with a regular expression.
The usual approach on POSIX systems is:
ls * | sed -E 's/(.*)text(.*)to(.*)remove(.*)/mv & "$1$2$3$4"/' | sh
That is horrendously ugly and does not port well to Windows. Here is my slightly less horrendously ugly attempt to fix that:https://bitbucket.org/tux_/remv