help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: removing file with newlines in name


From: Colin S. Miller
Subject: Re: removing file with newlines in name
Date: Wed, 01 Dec 2004 12:07:47 +0000
User-agent: Mozilla Thunderbird 0.9 (X11/20041124)

Frederik Fouvry 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?  I tried quite a few things, but none
that worked.  I usually end up with the error message:

cannot stat `/proj/negra/case \'t\':   get_all_tables = 1;\n                    
    break;\n\t    case \'T\':   get_all_tables = 2;\n': Invalid argument

Many thanks,

Frederik Fouvry
You could try
rm -i <wildcard>
which will prompt for confirmation of each delete;
Its acceptable if you want to manually delete each file,
but not really for use in scripts.

HTH,
Colin S. Miller


reply via email to

[Prev in Thread] Current Thread [Next in Thread]