Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: pen@comptel.fi (Pekka Niemi)
Subject: Re: Help: deleting directories with !2 in name
Date: 1995/12/01	[thread overview]
Message-ID: <87vio1uivn.fsf@sohvi.comptel.fi> (raw)
In-Reply-To: Pine.SOL.3.91.951130153702.25664A-100000@info.census.gov

>>>>> "Joyce" == EPCD  <Joyce> writes:

    Joyce> OSF/1 doesn't let me remove these .  If I try rm *, I get
    Joyce> the response that these are directories.  If I try rmdir *
    Joyce> I get the response that these directories contain files.
    Joyce> If I try going into these directories to remove the files
    Joyce> 'cd os!2_sys' e.g., I get the error message "2: event not
    Joyce> found".

  Isn't there a FAQ for deleting files with special characters in their names?
  The point is to 'escape' the exclamation mark, which has a special 
meaning at least in csh and bash.  Escaping is done by inserting a backslash in
front of the character (like \!).  You can also prevent the shell from 
interpreting the string by surrounding it with single quotes ('os!2_sys').

  -  After removing those unwanted directories you may see it appropriate to 
re-consult the manual page for the command interpreter you are using.

  Cheers,

	pen

-- 
Pekka Niemi                         
Unix system administrator @ Comptel
Tel. +358-0-7001 1613



  parent reply	other threads:[~1995-12-01  5:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-30  5:00 Help: deleting directories with !2 in name Joyce Cooper (EPCD)
1995-11-30  5:00 ` Philip A. Schueller
1995-12-01  5:00 ` Harald Fuchs
1995-12-01  5:00 ` Pekka Niemi [this message]
1995-12-03  5:00 ` Pekka Niemi
1995-12-12  5:00 ` Joyce Cooper (EPCD)
read-only archive

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