Somehow I've wound up with a dozen files in my /home directory with 0 bytes and corrupted names, all containing diamond shapes with question marks inside them. When I try to "Move to Trash," I'm informed that the file does not exist. This is a small issue, not preventing me from doing anything, but how do I get rid of them?
Announcement
Collapse
No announcement yet.
Corrupted files
Collapse
This topic is closed.
X
X
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish



- Jul 2011
- 9625
- Seattle, WA, USA
- Send PM
-
Thank you, Steve; that looks helpful. Sorry for the beginner's question, but I'm having trouble with this: "run with --no-test as first parameter to really rename". Guess I don't know what the "first parameter" is. I've tried replacing various things with "--no-test" (without the "") but still get the output "This is a simulation > run with --no-test as first..."Originally posted by SteveRiley View Post-- Werdigo49
Registered Linux User #291592
Kubuntu Xenial Xerus (16.04)
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish



- Jul 2011
- 9625
- Seattle, WA, USA
- Send PM
Assume you save the script in a file called bad-renamer.sh and set the attributes to a+x.
If you run this:
then the script will run only in simulation mode. To actually do the work, you need to pass --no-test as the first parameter thusly:Code:./bad-renamer.sh [I]CORRUPTED-FILE-NAME[/I]
Code:./bad-renamer.sh --no-test [I]CORRUPTED-FILE-NAME[/I]
- Top
- Bottom
Comment
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.

Comment