On Thu 24 Jul 2014 at 14:43:06 +0200, Tony van der Hoff 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}') dpkg -P $A