I've seen an interesting way to do method chaining in haskell: The '$' operator: Basically it's a low-priority right-associative binary operator that applies the function to the left to everything to the right.<p>Using the example from the article, one could do it as:<p>sort -n $ uniq -n $ sort $ awk '{ print $5}' $ grep tcp $ netstat -n<p>I.e essentially the same but in reverse order.