How to get rid of bad chrs?
Ralf Mardorf
kde.lists at yahoo.com
Mon Aug 2 16:30:27 UTC 2021
On Mon, 2 Aug 2021 11:57:27 -0400, Little Girl wrote:
>They'd rename a subdirectory before renaming the files
Split the task. First use a script/funtion to rename files only. IOW
use the "test" command to check if an item is a directory and if it
is a directory, don't rename it. If it is a file, rename it. In the next
step only rename directories.
I'm uncertain how to treat symbolic links. Probably don't follow
symbolic links and treat them like files, even if the link is against a
directory.
Keep in mind the the "find" command might be handy.
More information about the ubuntu-users
mailing list