[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: removing file with newlines in name
From: |
Kilian A. Foth |
Subject: |
Re: removing file with newlines in name |
Date: |
30 Nov 2004 15:30:47 GMT |
User-agent: |
tin/1.7.5-20040615 ("Gighay") (UNIX) (SunOS/5.8 (sun4u)) |
Frederik Fouvry <fouvry@coli.uni-saarland.de> wrote:
> Hi,
> Due to a corrupted tar file, I ended up in a directory with a file
> named like this (between the lines)
> ----------------------------------------------------------------------
> case 't': get_all_tables = 1;
> break;
> case 'T': get_all_tables = 2;
> cd
> ----------------------------------------------------------------------
> Any idea on how I can remove it?
Quotation marks are your friend.
rm "case 't': get_all_tables = 1;
break;
case 'T': get_all_tables = 2;
cd"
does what you want. You don't need to type all that, just paste it
between two quotes.
And you were wondering why shells support two types of quotes...
--
No animal was harmed in the composition of this message.