For somewhat reason, my Ubuntu Mate 20.04 let me include *
and other symbols apparently not valid for a filename or folder. But now I need to copy a lot of archives (like 15,000) to another PC. I don't know how to make a script for this, so I need help with it to let me rename everything inside a folder and the name of that folder also, example:
Folders:
701*math**2nd
100eng*1st
etc...
Archives:
800-task**201.xls
508-ok10*300.doc
etc...
I just need to remove the characters, exchanging the *
for a _
or just remove the character from the name of file, because file manager doesn't let me copy them to an external HDD.
**EDIT: This worked! https://askubuntu.com/a/1302061/1661703
*
is a perfectly valid character for file names (if you are using EXTx file system format). The only invalid characters are/
and NUL. However, if you are trying to store files with*
and other special characters not valid on an NTFS file system, then you have to replace these. For more info see this: https://stackoverflow.com/questions/1976007/what-characters-are-forbidden-in-windows-and-linux-directory-names – FedKad Jan 02 '23 at 16:42