Tue, 17 May 2005

Finally travelled home from Guetersloh...

... but unfortunately, I didn't had anything to read during the 4 hours in the train.

But the new ICEs have power sockets, so I could hack a bit:

for x in $(for i in $(seq $(python -c "print ord('a')") $(echo $(python -c "print ord('a')")+25|bc)) ;do printf \\x$(printf %x $i) ; echo " " ; done) ; do for y in $(for i in $(seq $(perl -e "print ord('a')") $(echo $(perl -e "print ord('a')")+25|bc)) ; do printf \\x$(printf %x $i) ; echo " " ; done) ; do echo -n $x$y " "; apt-cache search $x$y|wc -l ; done; done > /tmp/foobar ; for i in $(cat /tmp/foobar|sort -n +1 |head -n $(echo $(cat /tmp/foobar| sort -n +1|grep -n 2|head -n1|cut -d: -f1)-1 |bc)|grep 1|cut -d" " -f 1) ; do echo $i ; apt-cache search $i ; done ; rm /tmp/foobar

Try to guess what this does, before trying it ;)

Yes, I know it's not very elegant. Perhaps I will give it the final touch, when I again forget to take a book with me, when traveling in a train.

postet at 15:30 into [Debian] permanent link


About

Alexander Tolimar Reichle-Schmehl lives in Tuttlingen / Germany. Hw works as IT manager (specialized on Unix and SAN/Storage) for an international automotive supplier.

Links