remove this file...

F. G. Oakes zfgo01 at hgo7.hou.amoco.com
Fri Jun 7 11:15:11 AEST 1991


lthompso at hpcc01.HP.COM (Larry L. Thompson) writes:

>/ hpcc01:comp.unix.wizards / priest at cs.odu.edu (Travis L Priest) /  4:30 pm  Jun  4, 1991 /

>I recently had a file in my dirctory that was incidentally created by
>a program I ran.  `ls` reported it's name as "N???BZ? " and upon
>trying to remove it, it logged me out.

>>My question is: How do you remove a file whose name contains the
>>"logout" control sequence using standard commands available to sh,
>>csh, or tcsh ...

You might try archiving everything in it's (the file's) home directory, except
the file itself into a temporary file, move up a level, remove the directory, 
make it back, and restore the files from the archive.  This assumes you can
exclude the problem file with egrep, etc.  
-- 
============================================================================
zfgo01 at hgo7.hou.amoco.com (Glen Oakes)



More information about the Comp.unix.wizards mailing list