unix command implemented in Haskell

adapted from
http://www.haskell.org/haskellwiki/Simple_unix_tools