Title: RE: Deleting a file

I have had luck with the following technique for deleting files that were incorrectly created with special characters in the filename (sometimes non-displayed characters):

Use find to develop a pattern unique to the file or files you want to delete, such as

find . -name '*RB*XA*' -print

Once you get the files in question listed, with no OTHER files listed, change the statement to

find . -name '*RB*XA*' -exec rm -f {} \;




-----Original Message-----
From: Rick Henderson [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 3:15 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Deleting a file


try rm \#filename\#

every so often I run across a file that starts with *  ie *filename

so i rm \*filename

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ted Gervais
Sent: Monday, February 10, 2003 1:55 PM
To: [EMAIL PROTECTED]
Subject: Deleting a file



Was wondering something here.  Now and than I end up with a file that has
'#'
in front and back of it.  ie: #filename#.

No doubt that is caused by using MC and while MC can delete these files how
does one do it from the command line?    I have often tried to try a few
approaches to removing them  'rm #*  or rm *#   and can't seem to delete
them.

How is this done from the commmand line without resorting to using MC.??
--
T.L.Gervais
Coldbrook, NS
Canada.



--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to