Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
- To: MLUG Members <EMAIL:PROTECTED>
- Subject: Re: [MLUG] a file named minus
- From: Brandon C <EMAIL:PROTECTED>
- Date: Wed, 3 Jan 2007 22:57:13 -0800 (PST)
- Delivery-date: Thu, 04 Jan 2007 00:58:07 -0600
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=WpKomVbbz2giI8fA+mV0FF9yK57Kpki8OR/9Tg7Vp4ug7AXnu0Uan8YNq3jXNXr57vL9ft1gtE5Q5nyK/N/IG2eS2lR1dyjPa6Lc9JP6B0s3HW9+eQrs9blEr1hhMAYKAz/gBQjYFQh0uqRuu1jqA4qYJzJxM0hffiEZaz2smfM= ;
- Envelope-to: EMAIL:PROTECTED
- Reply-to: MLUG Members <EMAIL:PROTECTED>
- Sender: EMAIL:PROTECTED
at least with rm you can use '--' to terminate the argument list and then '-' will be interpreted as a filename instead of an argument. Haven't tried it with cat or other utilities.
----- Original Message ----
From: Mike Miller <EMAIL:PROTECTED>
To: MLUG membership <EMAIL:PROTECTED>
Sent: Wednesday, January 3, 2007 11:53:42 PM
Subject: [MLUG] a file named minus
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.
Mike
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members