Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Quick (?) UNIX Question - EOT
Hi Everybody. Thanks for the million or so responses to my query,
and a special nod to Mladen for the chuckle. Some worked and some
did not. I forgot to mention, this is HP-UX 11i.
I tried lots of the answers. These did not work...
$ rm -i \-v
/usr/bin/rm: illegal option -- v
Usage: rm [-Rfir] file ...
$
$ $ rm -i *v
/usr/bin/rm: illegal option -- v
Usage: rm [-Rfir] file ...
$=20
$ rm -i '-v'
/usr/bin/rm: illegal option -- v
Usage: rm [-Rfir] file ...
$=20
$ rm -i "-v"
/usr/bin/rm: illegal option -- v
Usage: rm [-Rfir] file ...
$=20
$ rm -i '\-v'
rm: \-v non-existent
$=20
$ rm -i "\-v"
rm: \-v non-existent
$=20
...but these did!
$ rm -i ./-v
./-v: ? (y/n)
$=20
$ rm -i -- -v
-v: ? (y/n)=20
$=20
My thanks to all who voted!
Cheers,
Mike
-----Original Message-----
From: Jesse, Rich [mailto:Rich.Jesse_at_quadtechworld.com]
Sent: Friday, April 16, 2004 9:31 AM
To: 'oracle-l_at_freelists.org'
Subject: RE: Quick (?) UNIX Question
rm -i \-v
The backslash escapes the dash. The dash "i" asks you to confirm the delete.
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Sat Apr 17 2004 - 12:18:33 CDT
![]() |
![]() |