Michael Chesterton <che...@chesterton.id.au> writes:
> On 28/10/2009, at 9:35 PM, Daniel Pittman wrote:
>> pe...@chubb.wattle.id.au writes:
>>
>>> I've done apt-get remove to get rid of some packages, but I should have
>>> done
>>> apt-get remove --purge.  How do I get rid of the config file droppings all
>>> over my system?
>>
>>    dpkg --list | grep ^rc
>>
>> # sudo dpkg --purge $(dpkg --list | grep ^rc | awk '{print $2}')
>
> What a waste, piping grep to awk. I suppose you also eat kittens?
> sudo dpkg --purge $(dpkg --list | awk '/^rc/ {print $2}')

I hang my head in shame.  I can't believe I didn't spot that myself, even if I
wrote that off the top of my head. :/

        Daniel

-- 
✣ Daniel Pittman            ✉ dan...@rimspace.net            ☎ +61 401 155 707
               ♽ made with 100 percent post-consumer electrons
   Looking for work?  Love Perl?  In Melbourne, Australia?  We are hiring.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to