Deleting Files with Invalid Characters

Joined
May 9, 2012
Messages
4
Reaction score
0
Points
1
Hi All, While troubleshooting an email attachment issue I saved 3 files, now I can't delete them. They have crazy characters in the name, I'm sure they are not helping. They are even causing Time Machine to fail. Any help is appreciated.


Macbook Pro 10.7.4
Take a look at the screenshots, you can see the file names and paths. I have also tried renaming in both terminal and finder with no luck.

Screenshot from terminal attached
Screenshot from Finder attached

Finder.png
 

Attachments

  • terminal.png
    terminal.png
    41.9 KB · Views: 8

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
Are you able at least to get them into the Trash even if the Trash can't be emptied? By the way, it appears it's the dash and forward slash symbols that are invalid.
 
Joined
Oct 30, 2010
Messages
273
Reaction score
0
Points
16
Location
Southern Illinois
Your Mac's Specs
MBP 15" I7 first one and loving it.
Not sure but you might try enclosing the file name in parentheses " file name ".

cd to the directory they are located in rm -r "file name" Sometimes with a lot of charters this works. I think the \ is used to ignore a space in the name. Worth a try.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top