[wellylug] If you are stuck for ideas for a lightning talk session
Grant McLean
grant at mclean.net.nz
Thu Feb 13 09:56:57 NZDT 2014
On Thu, 2014-02-13 at 09:37 +1300, Donovan Jones wrote:
> I cant resist a bit of golf:
>
> dpkg --get-selections | awk '{print $1}' | sort -R | head -1
That's not really golf considering it's much clearer than my original.
I was unaware that sort had a -R option so thanks for the tip.
This is golf :-) ...
dpkg --get-selections|sort -R|awk 'FNR==1{print$1}'
Cheers
Grant
More information about the wellylug
mailing list