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 Wed, 3 Jan 2007, Brandon C wrote:
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.
Yes! rm worked as follows:
rm -- '-'
However, cat did not work like this:
cat -- '-'
Mike
----- 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.
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members