CORRUPTED FILES

WSHB employee michaelb at wshb.UUCP
Thu Jan 4 07:27:27 AEST 1990


The brute force methoed I've taught users here involves using vi.

redirect the output of ls -l to a file; ls -l > bad.files
use vi to get the names and write them down ;  vi bad.files

The files names will show up in vi with representations of the non-printing
characters, ie. escape=^[. (Escape seems to be the worst culprit because
it does crazy things to the terminal if the next character makes a valid
terminal control sequence.) After WRITING DOWN the wierd names, exit vi.
Then rm 'wierd sequences' for each file name. (Many people get confused
here if the names cause up-down or clear screen actions. Tell them to
do it anyway.) The hardest part is getting people to remember to use
the "\" before special characters.

Hope this helps. It isn't the most esoteric solution, but it is easy for
laymen to remember and use.

-- 
Michael Batchelor -- Systems/Operations Engineer
WSHB - An International Broadcast Station of
          The Christian Science Monitor Syndicate, Inc.
uunet!wshb!michaelb                 803/625-4880



More information about the Comp.unix.xenix mailing list