Removing garbage files

Bill Irwin bill at TWG.UUCP
Fri Jun 1 13:24:12 AEST 1990


Here  is  one that has got me beat, frustrated and down right  angry.   I
have  some  files  in a directory that I can't remove.  When I  "ls"  the
directory  the  output  puts my terminal into graphics mode.   There  are
several  of these culprits and in each one you can see a letter or two in
the  file  name.   When I do "rm -i *k*" I get  told  "%%%%%k#@!0=-+  not
found".

I  even  got desperate and did "rm -r" on the directory, but it  wouldn't
remove  it because it wasn't empty...because it couldn't find some of the
files  to  remove, etc etc.  I feel like editing the directory  file  and
changing  the names of these files from control characters to ascii so  I
can  remove them, but you can't edit a directory file (please correct  me
if I'm wrong on this).

For  those  of you who feel up to tackling this one, I can  included  the
output  of  two  "ls"  runs.   The first uses  the  "-b"  flag  to  print
non-graphic  characters  in  octal.  The second used the  "-q"  flag  for
question mark substitution.

-b output:

\002K\007\027k\037\744\035\650\002j'\005\004
\004F\010k#
\007A%\027k\036\746\035\700\002\013\004\610-
\007A'z*\025\004j\010k#\610#\630
\015\670 \010\002K\006\027A?\007UFz
 \024@\027\607\001'\635\0019\6448\615\001
A7\010$\015\670 \010\002K\006\027A?
A7j+\005\004b\030aP#\640\001\030
C\030\007k\015\720\016\766\002\027k\035\700\036
k#(#\610\010\007A'z(\025\004\
\646\035\652\001j)\005\004e\030k"\700#

-q output

?K??k?????j'??
?F?k#
?A%?k????????-
?A'z*??j?k#?#?
?? ??K??A??UFz
 ?@???'??9?8??
A7?$?? ??K??A?
A7j+??b?aP#???
C??k??????k???
????j)??e?k"?#

I  am running SCO XENIX V/386 2.3.2 on a 386/33Mz system.  To the one who
scores  on  this I will be forever indebted.  Reformatting the disk  does
seem a little drastic.

--
Bill Irwin
TWG The Westrheim Group
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uunet!van-bc!twg!bill     (604)431-9600 (voice)      (604)431-4629 (fax)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the Comp.unix.wizards mailing list