Transform text from the command-line using Haskell expressions. Similar to awk, but using Haskell as the text-processing language.
The Haskell expression (!! 1)
takes the second element from a list. Using Hawk to --map
this expression over all input lines, we can extract the second column of the output of ps aux
.