On 12/10/2020 05:08, Carlos E. R. wrote:
On 12/10/2020 04.42, Anton Aylward wrote:
On 11/10/2020 21:27, Carlos E. R. wrote:
I wonder if some site has a collection of such scripts for mc, to pick your own?
Oh, gee, this is a pretty straight forward shell loop script.
hint: newname=$(echo "$oldname" | tr ":" "_") mv "$oldname" newname
Why mv and not cp?
sure, why not.
I leave the outer loop (which might use 'ls' or might use 'find') as an exercise for the OP.
mc
makes no sense to use something that heavyweight when a trivial for each oldname in ..... will suffice. If you really want, you might be able to do it with a single line of shell. And don't forget that shell can do some sophisticated pattern matching and eliding. -- “Reality is so complex, we must move away from dogma, whether it’s conspiracy theories or free-market,” -- James Glattfelder. http://jth.ch/jbg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org