Re: R: can't delete file!

Re: R: can't delete file!

 

  

Why would you want to go through all that when you can just use the inode number in the find command? That works on every flavor of Unix and has no risk of delting the wrong file(s).

>>> "Graziano Barberini " <oracledba-ezmlmshield-x82674635.[Email address protected] 04/07/05 12:08 PM >>>

Try this (if the -C file isn't in / ):

create a new dir ie. ../new_dir
move all files except -c file on this new dir with:

mv [a-Z]* ../new_dir

so in old dir you have only the file -C ... (try ls -la for sure)

cd ..

remove the old dir:
rm -rf old_dir

rename new_dir into old_dir:
mv new_dir old_dir

voila'

Graziano Barberini
www.elitecgroup.it

-----Messaggio originale-----
Da: Darren Finch [mailto:oracledba-ezmlmshield-x94138749.[Email address protected]
Inviato: giovedì 7 aprile 2005 16.36
A: LazyDBA Discussion
Oggetto: RE: can't delete file!

rm ?C will also do the trick

The ? Comes in very handy for removing corrupt characters too (which does
happen!)

-----Original Message-----
From: Anderson Garry
[mailto:oracledba-ezmlmshield-x54436094.[Email address protected]
Sent: 07 April 2005 15:31
To: LazyDBA Discussion
Subject: RE: can't delete file!

in Solaris and most unix flavors use ./ i.e.
rm ./-C
--Garry

-----Original Message-----
From: Ivo Peksens
[mailto:oracledba-ezmlmshield-x9298223.[Email address protected]
Sent: Tuesday, April 05, 2005 5:21 AM
To: LazyDBA Discussion
Subject: can't delete file!


Hello!

Does anyone know how to delete in Solaris a file named like "-C".
I mean rm command does not see it!

Thanks



Ivo Peksens
ivo.[Email address protected]
2005-04-05 14:18:36



--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com To unsubscribe: see
http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com By using this list you agree to
these terms:http://www.lazydba.com/legal.html



--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these
terms:http://www.lazydba.com/legal.html



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.4 - Release Date: 06/04/2005





--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these terms:http://www.lazydba.com/legal.html



--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these terms:http://www.lazydba.com/legal.html



Oracle LazyDBA home page