Kushal Kumaran([EMAIL PROTECTED]) is reported to have said: > On 5/23/07, Wayne Topa <[EMAIL PROTECTED]> wrote: > >Mike McClain([EMAIL PROTECTED]) is reported to have said: > >> <--<snip>-->
> >> If these leftovers are due to packages removed but not purged, this > >> will tell you: > >> grep -B1 "Status: deinstall ok config-files" /var/lib/dpkg/status \ > >> | grep "Pac" | cut -d" " -f2 > >> and > >> for f in $( the above line ); do dpkg -P $f; done > >> will clean up. > > > >Thanks for this jewel Mike! I am still trying to grok the " -f2. > > > > It's easy enough. -d" " sets the delimiter to space instead of the > default TAB, and -f2 selects the second field according to that > delimiter. See the cut(1) manpage. > > Try running the pipeline without the final cut to see. Duh. Thanks. I was too dumb to even see the cut command. I was looking only in man grep. More then clear now! Thanks again, Wayne -- Using TSO is like kicking a dead whale down the beach. -- S. C. Johnson _______________________________________________________ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]