Subject: | |
From: | |
Reply To: | |
Date: | Tue, 20 May 2003 14:41:06 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
how about this :
$ echo 1 > -?.cmd
$ find ./ -name '-?.cmd'
./-?.cmd
$ find ./ -name '-?.cmd' -exec rm {} \;
$ find ./ -name '-?.cmd'
$
thanks
Michael
On Tue, 20 May 2003 11:12:46 -0700, Paul H. Christidis
<[log in to unmask]> wrote:
>Folks,
>
>In an attempt to display the 'usage' instructions of a utility in UNIX, I
>invoked it using the '-?' switch. The utility proceeded to run and in the
>process created three files having the '-?' prefix. I've tried different
>incantations of the 'rm' command without any luck. Does anyone have any
>ideas?
>
>Regards
>Paul Christidis
>
># uname -a
>SunOS lbcns01 5.4 Generic_101945-64 sun4m sparc
># ls -lsa
>total 848
> 2 -rw-r--r-- 1 root other 55 Apr 28 10:37 -?.cmd
> 2 -rw-r--r-- 1 root other 87 Apr 28 10:37 -?.log
> 0 -rw-r--r-- 1 root other 0 Apr 28 10:37 -?.txt
>
>* To join/leave the list, search archives, change list settings, *
>* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
how about this :
$ echo 1 > -?.cmd
$ find ./ -name '-?.cmd'
./-?.cmd
$ find ./ -name '-?.cmd' -exec rm {} \;
$ find ./ -name '-?.cmd'
$
thanks
Michael
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|