Michael H. Warfield wrote:
> Karl F. Larsen enscribed thusly:
> > Hello Guru's
>
> > I hit my mouse key 2 at a poor time and sent a lot of text to the
> > prompt. I tried rm and it got part of it but one long line I can't rm or
> > mv or kill or anything.
>
> Opppsss... Wish I had a nickel for every time I've done that.
>
> > When I use ls -i I see the offending line has an inode number
> > which I think a smart person can delete and solve my problem.
>
> Easier method that I use for getting rid of files when you can't
> type in the name (non-ascii characters and such).
>
> Change to the directory where the bad files and and type:
>
> rm -ri .
>
> Say "n" to everything you do not want to delete and "y" to the
> bad guys you want to dump. Will get anything with backspaces or non-ascii
> cruft that you couldn't get to any other way...
Karl, Michael,
Another strategy is to use the filename completion mechanism,
for instance present in the C-shell. Anywhere you need a filename,
just type the first characters that uniquely indentify it, hit <TAB>,
and watch the magic. You may need to 'set filec' in order for this to
work.
Couldn't live without it anymore...
Just for the record...
73,
Jan
>
>
> > My question is, how do you delete an inode number?
>
> > Best wishes
>
> > - Karl F. Larsen, 3310 East Street, Las Cruces,NM (505) 524-3303 -
>
> Mike
> --
> Michael H. Warfield | (770) 985-6132 | [EMAIL PROTECTED]
> (The Mad Wizard) | (770) 925-8248 | http://www.wittsend.com/mhw/
> NIC whois: MHW9 | An optimist believes we live in the best of all
> PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!