MLUG: Re: [MLUG] a file named minus
Re: [MLUG] a file named minus
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Thu, Jan 04, 2007 at 12:53:42AM -0600, Mike Miller wrote:
> I managed somehow to create a file named '-' (without the quotes). 
> Anyway, this was not easy to remove from the command line and it was even 
> harder to see the contents of the file.  For example, this fails:
> 
> cat '-'
> 
> On Solaris, tcsh shell, this failed:
> 
> rm '-'
> 
> But that same command worked on a Linux box under tcsh.
> 
> I didn't think it was that hard to deal with a file with that name.  In 
> the end I opened a GUI file manager on Solaris and used that to delete it. 
> That was pretty crazy.

or you can take the prompty way, don't hit 'y' in the wrong spot :-)

    rm -i *

enjoy,

-jeremy

-- 
========================================================================
 Jeremy Hinegardner                              EMAIL:PROTECTED 


_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members