Need help reading a file with unusual name(s)

Richard O'Rourke ror at mplex.UUCP
Wed Apr 19 16:57:43 AEST 1989


In article <1460 at auspex.auspex.com> guy at auspex.auspex.com (Guy Harris) writes:
>>	to edit "maps\033w" type "vi maps\\033w".  This interprets the
>>backslash as a literal charachter rather that the introducer to a special
>>charachter.
>
>"\033" doesn't mean "the character backslash, followed by the character

[ lots deleted ]

>"filename?" will match all files whose names consist of "filename"
>followed by any character, including CR; the "?" matches any character.

[ more deleted 
Some stuff about about creating a directory and moving the file with
funny name somewhere else to deal with it.... ]

>(Yes, this is a bit painful, and can be taken out of context and used to
>bash UNIX.  I suspect the same could be done with just about any other

Too muck work.
Why not:

vi filename[!\ -\~]

which is still not perfect, but probably eliminates any files with
names that are valid.  It even eliminates files that have a trailing
space.  If the file you are after has a trailing space do this:

vi filename[!\!-\~]     # Gets trailing non-printables

these work on my version of ksh anyway.  Assumes ASCII.

-------- Opinions expressed above are not necessarily anyone elses
                      |  Voice: 604 w 875-1461  | h 438-8249
Richard O' Rourke     |  Mail:  uunet!mplex!ror
-- 
-------- Opinions expressed above are not necessarily anyone elses
                      |  Voice: 604 w 875-1461  | h 438-8249
Richard O' Rourke     |  Mail:  uunet!mplex!ror



More information about the Comp.unix.questions mailing list