Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Help deleting a file named *
@ 1998-01-09  5:00 Donald G. Marchlenski
  1998-01-12  5:00 ` Joe Mario
  0 siblings, 1 reply; 2+ messages in thread
From: Donald G. Marchlenski @ 1998-01-09  5:00 UTC (permalink / raw)



I did a bad thing with ftp and wound up creating a file named * in my home
directory.  Not that I can't live with the thing there but can anybody tell me
how to delete it without deleting everything?  I'm afraid to try  'rm *'.  I can
think of ways where I copy everything someplace else, use rm *, and then copy
back everything but the file named * but I wonder if there is a way to just
delete *.

Don Marchlenski





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help deleting a file named *
  1998-01-09  5:00 Help deleting a file named * Donald G. Marchlenski
@ 1998-01-12  5:00 ` Joe Mario
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Mario @ 1998-01-12  5:00 UTC (permalink / raw)
  To: Donald G. Marchlenski


Donald G. Marchlenski wrote:
> 
> I did a bad thing with ftp and wound up creating a file named * in 
> my home directory.   
> ...
> but I wonder if there is a way to just delete *.
 
 
Try using: rm -i -- \*   

% touch "*"  
% touch foo
% ls -l
total 0
-rw-r--r--   1 mario    decc           0 Jan 12 12:50 *
-rw-r--r--   1 mario    decc           0 Jan 12 12:50 foo
% rm -i -- \*
rm: remove *? y
% ls -l
total 0
-rw-r--r--   1 mario    decc           0 Jan 12 12:50 foo
% 


Joe



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-01-12  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-09  5:00 Help deleting a file named * Donald G. Marchlenski
1998-01-12  5:00 ` Joe Mario

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox