From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,45755cd451a211de X-Google-Attributes: gidfee84,public From: pen@comptel.fi (Pekka Niemi) Subject: Re: Help: deleting directories with !2 in name Date: 1995/12/01 Message-ID: <87vio1uivn.fsf@sohvi.comptel.fi>#1/1 X-Deja-AN: 120605523 sender: pen@sohvi.comptel.fi references: organization: OY Comptel AB, +358-0-700 11 31 newsgroups: comp.unix.osf.osf1 >>>>> "Joyce" == EPCD 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