[lug] getting rid of bad filenames?

Riggs, Rob RRiggs at doubleclick.net
Wed Jun 20 15:18:20 MDT 2001


I'd try 'find -inum ... -exec rm -f {} \;' instead to see if that works. I
think you may have a problem with xargs reading the trashed filename from
the pipe. It may be trying to parse the data in some manner.

Another option is to use a tool like midnight commander to delete the file.

-----Original Message-----
From: Nate Duehr [mailto:nate at natetech.com]
Sent: Wednesday, June 20, 2001 3:07 PM
To: lug at lug.boulder.co.us
Subject: [lug] getting rid of bad filenames?


Trying this doesn't seem to work...

ls -i to get an inode of a file with a really trashed filename
find -inum <whatever from above> | xargs rm

Is this a braindead way to do this?

-- 
Nate Duehr <nate at natetech.com>

GPG Key fingerprint = DCAF 2B9D CC9B 96FA 7A6D AAF4 2D61 77C5 7ECE C1D2
Public Key available upon request, or at wwwkeys.pgp.net and others.
_______________________________________________
Web Page:  http://lug.boulder.co.us
Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list