Re: missing LSB tags and overrides
On Thu Jul 24, 2014 at 14:40:14 +0100, Brian wrote:
> > How do I join this output into the purge command to save typing in each
> > package name?
>
> A=$(dpkg -l | sed '1,5d' | grep ^rc | awk -F" " '{print $2}')
That seems needlessly complex, using both sed and awk.
Removing sed you could use this:
dpkg --list | grep ^rc | awk '{print $2}'
And given that awk can be used to match you could drop the grep too:
dpkg --list | awk '/^rc/ {print $2}'
Steve
--
# git-based dns hosting.
https://dns-api.com/
Reply to: