I love shell one lines. I love how twisted they look and how they can do complex task quickly, even if it takes me 30 minutes to find the right way. Sometimes, even when I end up with a result, I'm not satisfied.
I hereby share a twisted bit of code which lists in order of priority all the packages in the debian-installer section.
So, Interweb, Is there any way to improve that?
cat Packages | grep-dctrl -FInstaller-Menu-Item -e ".+" -sInstaller-Menu-Item,Package -n | for i in `cat`; do if [ -z "$z" ]; then echo -n $i; z=1; else echo " $i"; unset z; fi; done | sort -n
Not that I expect any readers for now.