I have multiple files from a defect usb-stick. Many of them have the "._" from Mac OS in the beginning, which should be kept. Some files have substitues for the german ä, ö or ü which are shown on the bash (ls -al) like:
'Pr'$'\374''fung_File.pdf'
How can I remove the '$'\374''? I have tried:
rename -n 's/\\'/_/g' *
which does not work.
ls
's output is a bit misleading, your files don't really have quotes or dollar signs in their names. Try:
rename -n 's/\374/_/' *
remove -n if its output looks good.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.