[ale] "undeleteable" file
    Geoffrey 
    esoteric at 3times25.net
       
    Wed Sep  1 11:33:28 EDT 2004
    
    
  
Michael D. Hirsch wrote:
> On Wednesday 01 September 2004 10:51 am, Mike Panetta wrote:
> 
>>Why fall back to a GUI (that may not even be available, think
>>resuce disk) when ls -b works just fine?
> 
> 
> Because it doesn't do what I want.  If I have a file named '*' then ls -b will 
> report it as named '*'.  So when I remove it with 'rm *' I end up in trouble.
You just need to be careful.  A file that consists of the single 
character '*' can be created as in:
touch \*
It can also be removed as:
rm \*
If you're concerned that may not work, you can reduce the files matched as:
rm ?
Which will remove all files that contain a name with a single character.
> 
> Yes, there are ways to prevent the trouble from happening, but then I have to 
> remember them.
So, you do this often??? :)
-- 
Until later, Geoffrey       Registered Linux User #108567
                             AT&T Certified UNIX System Programmer - 1995
    
    
More information about the Ale
mailing list