Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!uunet!wshb!michaelb From: michaelb@wshb.UUCP ( WSHB employee) Newsgroups: comp.unix.xenix Subject: Re: CORRUPTED FILES Summary: brute force method Message-ID: <383@wshb.UUCP> Date: 3 Jan 90 20:27:27 GMT References: <89122603140074@masnet.uucp> Organization: WSHB, Christian Science Mon. Synd., Cypress Creek, SC Lines: 22 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