26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
-
-
+
+
|
count words with `'eddie tshow . second (length . words)'`<br />
count lines with `'eddie tshow . second (length . lines)'`</dd>
<dt>*fgrep* - select lines containing a substring:</dt>
<dd>`eddie -l -L 'unlines . filter (isInfixOf "substring")'`</dd>
<dt>NOT WORKING IN 1.0.0 *grep* - select lines matching a regular experssion:</dt>
<dd>`eddie -l -L -m Text.Regex.TDFA 'unlines . (filter (=~ "r.e."))'`</dd>
<dt>*grep* - select lines matching a regular expression:</dt>
<dd>`eddie -l -L -m Text.Regex.TDFA -m Text.Regex.TDFA.Text 'unlines . (filter (=~ ("r.e." :: Text)))'`</dd>
<dt>*sort* - sort the lines in a file:</dt>
<dd>`eddie -l -L unlines.sort`</dd>
### The Alternative Bestiary
A collection of commands that do unix-like file processing but don't correspond to a generaly available command (borrowing heavily from http://www.haskell.org/haskellwiki/Simple_unix_tools.)
|