grep

Mac OS command line suckage

Situation: program foobar is running on a Mac OS box and on a Linux box. I verified that using "top" (I'm working in an 80x25 xterm btw). Now the funny part:

Linux:

user@linux$ ps aux | grep foobar
root [...] /usr/sbin/foobar --some-options --more --options --even --more --options

Mac OS:

user@macos$ ps aux | grep foobar

Huh? What's going on? I know the program is running on both boxes! Mind-boggling solution after a long time of swearing and wasting time:

user@macos$ ps auxww | grep foobar
root [...] /usr/sbin/foobar --some-options --more --options --even --more --options

WTF? I mean... WTF??? Mac OS sticks the physical output on the terminal — 80 characters per line — into the pipe (instead of the full content). That's why the grep for "foobar" returns nothing - the "foobar" part is beyond the 80 character mark...

So if I resize my terminal to 20x10, only 20 characters per line would go into the pipe?!? How stupid is that?

Do all BSD-type OSes do that?

Debian packages release names - Reloaded [Update]

Upon popular request (my post was even featured on Debian Weekly News), I re-ran my previous query on the changelog files in Debian packages. This time, however, I didn't only retrieve 40 random package release names, but "all" of them, for unknown values of "all". I didn't analyze some of the files (missing permissions), and maybe I missed one or two because my query sucked, but I think I've got most of them.

I ran a slightly more complicated query than last time, using the data from gluck:/org/lintian.debian.org/laboratory/. I have not the slightest idea how old the files in that archive are, but there's ca. 10.000 packages in there — more than enough, if you ask me.

The results (78 KB) this time are in alphabetical order, and include the package names where the strings were found. There's a total of 1408 strings.

Here are 20 randomly chosen strings, for some more fun:

gdb: * The "Ahhhhhhhhhhhhhhhhhh!" Release.
glibc: * The "Fuck Me Harder" release.
abiword: * The "Foolin' Myself" release.
opensc: * The "RTFM" release.
directory-administrator: * The "On Train" release
xchat: * The "Merry Christmas, mine beloved Xchat users!" release.
apache: * The "Yes, we know there is a new upstream release" upload.
mmm-mode: * The "But I'm Not Dead Yet!" Release
mozilla-firefox: * The "becoming more and more an iceweasel" release.
nano: * The "Marbella, ciudad hermanada con Benidorm" release.
thy: * The `Empty Spaces' release.
glibc: * The "Chainsaw Psycho" release.
sam: * The `Minime' release.
xchat: * The "Binary only" release.
tellico: * The "pbuider and buildds are not the same" package release
pingus: * The "All you pingus are belong to blendi" release
xchat: * The "Ok, wrong patch, excuse me guys :)" release.
cappuccino: * The "It's time for the upload" release
abiword: * The "Got A Good Thing Goin'" release.
firefox: * The "what he taketh, he giveth back" release.

I also created a small statistic this time. Here's the Top-20 packages (the ones with the most release names):

64 abiword
62 thy
41 xchat
35 glibc
31 shadow
31 abcde
28 menu
18 reportbug
18 firefox
17 fetchmail
15 ccze
14 tama
14 mozilla-firefox
12 nano
12 apache2
11 gaim
10 debconf
9 mailutils
9 lirc
9 geneweb

Feel free to grab the whole results file for more reading fun during boring hours of the day.
If you do any further processing or analysis of any kind with the data, please post a comment and let us all know ;-)

Update 2006-05-23: Enrico Zini has done some interesting things with the data...

Debian packages release names [Update]

The "I'm bored" release.

nice -n 19 find /usr/share/doc -name changelog.Debian.gz -exec zgrep "\* The .* [Rr]elease" {} \; | sort | uniq | bogosort -n | head -40

* The "Crack-smoking Squirrel" release.
* The "I should not have got out of bed yesterday" release
* The "Wohoo-we-are-going-to-main" release.
* The "And I thought IE had security bugs!" release.
* The "First snow in Finland" release.
* The "please buy me a brain" release
* The "I speak better English than this villian Bush" release.
* The "Brief Return From The Hell" release.
* The "Stoned Monkey" release.
* The "Let's do it cleaner" release.
* The "Fuck Me Harder" release.
* The "All or Nothing" release
* The "What's my name? Say my name, bitch!" release.
* The "next time I will buy myself a powerpc" release.
* The "I'm in such a hurry" release!
* The "I *hate* when that happens" release.
* The 'DOH!' release.
* The "laptop envy (damn tbm for having a nicer one than me)" release.
* The "Drunken Iceweasel" release.
* The "Follow the white rabbit" Release.
* The "someone should take my compiler away from me" release
* The "Ooops, I did it again" release
* The "Argh-I-took-the-wrong-version" release.
* The "Friday before Christmas" Release :-)
* The 'Yes, I need more sleep, and also to test my releases' release.
* The "you can't get sunburn at Finland" release.
* The "Chainsaw Psycho" release.
* The "Son of Drunken Iceweasel" release.
* The "Perl Sucks" release.
* The "I fucking hate libtool" release.
* The 'No, I don't use CVS' release.
* The "Throwing stuff away like mad and seeing if it still builds" release.
* The "This Space Intentionally Left Blank" Release
* The "From now on all of my world-killing weapons will be kept a TOTAL SECRET!" release.
* The "Lesbian Seagull" release.
* The "Oh my God, they killed Python, you bastards!" release.
* The "Evil Bitch Monster of Death" release.
* The "Pain as bright as steel" release.
* The "I've been hiding under a rock for two weeks" release.
* The "Suddenly the Dungeon collapses!! - You die..." release

I didn't bother to run it on the whole Debian archive on one of the Debian developer machines, as that would have probably pissed off some admins...

(via Jonathan Carter)

Update 2006-05-10: I have now created a list of "all" release strings in Debian unstable, which is available for download and further processing ;-)

Syndicate content