Skip to content.

plope

Personal tools
You are here: Home » Members » chrism's Home » Finding ZODB Conflict Hotspots » Actually...
 
 

Comment

Above in this comment thread: Finding ZODB Conflict Hotspots » As Jamie Zawinski once said...

Actually...

Posted by pupq at 2005-08-10 07:47 PM
Jamie's well-known quote is about regular expressions, not sed (http://fishbowl.pastiche.org/2003/08/18/beware_regular_expressions), but this seemed like a funny connection.

The jwz quote

If you look at the original comment (or at least a close as I've been able to find for it.) <http://groups-beta.google.com/group/alt.religion.emacs/msg/2988394c3082559f> the context is interesting. One of his complaints (and in that thread, he had many) is when things are kept as a byte stream, and that regular expressions force you to keep things as byte streams. In the case of a shell pipeline, what you have is predominately a byte stream.

I actually think that the "sort | uniq -c |sort -n" is more confusing to the bourne shell novice, but it is so commonly used that it eventually gets recognized as a single "sort by number of occurrences" token.