How to get rid of bad chrs?
Little Girl
littlergirl at gmail.com
Wed Aug 4 16:55:49 UTC 2021
Hey there,
Bret Busby wrote:
>Little Girl wrote:
>> rikona wrote:
>>>So it is not recursive?
>> That particular example isn't.
>>> I didn't see a flag to do that.
>> Me neither. It would have been nice if they had built that ability
>> into the command.
>Whilst I am surprised that the rename command appears to not have a
>-r switch, to perform recursively, you might be interested in the
>following.
Agreed on the surprise.
>In searching (using the duck duck go search engine from Seamonkey)
>using the search terms
>linux rename files recursively
>I found the following result, which you might find useful, assuming
>that Ubuntu Linux has all of the involved functionalities.
>
>https://lovethepenguin.com/linux-how-to-recursively-rename-files-f7277e05aea7?gi=e3aa7def02e1
>
>I hope that this is helpful.
Thanks. I was hopeful on that one, but it just gave me a "No such
file or directory" for the file and the subdirectory that I put into
the base directory and it renamed the file in the base directory
without recursively finding and renaming the rest. Even more
interestingly, when I added a g to the end of the rename command in
it to make it global, it did the same thing.
It's possible my environment or the find or rename command (or any
combination of the three) has/have a bug or bugs that are preventing
me from properly testing it. I'll mess around with it some more after
upgrading.
--
Little Girl
There is no spoon.
More information about the ubuntu-users
mailing list