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

Re: How to escape this for the bash shell...



On Wed, Aug 04, 1999 at 03:08:20PM +0300, Alex Shnitman wrote:
> On Wed, Aug 04, 1999 at 01:22:17AM -0600, Nate Duehr wrote:
> 
> > I have a file named :
> > 
> > ?????[4~?[4~?[4~?[4~?[4~?[4~?[4~?[4~?[4~?[4~
> > 
> > ... in my home directory. 
> > 
> > I am wondering how to escape this properly for rm to work on it in
> > bash.
> 
> Most people told you to rm ./file or rm 'file' but that won't work of
> course since you can't input the filename from the keyboard at
> all. (The name as you typed it looks like it consists of escape
> sequences, not something you can easily type on the keyboard.) So it's
> a better idea to use the shell's wildcard expansion to do the work for
> you. You can type rm -i * and then answer n for every file except for
> this one.

It does look like escape sequences, but what key would produce ?[4~
... the closest I can find is PgDn which produces ^[[4~.  Is there
a table/chart/listing of these somewhere for a linux term?

Mike

[Private mail welcome, but no need to CC: me on list replies.]

--
Michael Merten
          ---> E-Mail: mikemerten@yahoo.com
          ---> NRA Life Member -- http://www.nra.org
          ---> Debian GNU/Linux Fan -- http://www.debian.org
          ---> CenLA-LUG Founder -- http://www.angelfire.com/la2/cenlalug
--
Any member introducing a dog into the Society's premises shall be
liable to a fine of one pound.  Any animal leading a blind person
shall be deemed to be a cat.
     -- Rule 46, Oxford Union Society, London


Reply to: