helloTree
Joined 13 years ago
Joined 13 years ago
import Text.ParserCombinators.ReadP -- or the parser lib of your choice
import Data.Char
...
macP = count 16 (satisfy isHexDigit)
$ grep -r -n --color "foo*bar" src
If I want to validate input data with the machine I just use a parser.
And can you please point me to the talk?
imap jf <ESC>
ghc -e 'interact ((++"\n") . show . length . lines)' < file
EDIT:
I know that it's the same like "wc -l" but using that approach I can solve also problems that may not be well suited for awk/sed. Or maybe I just have to see some convincing one-liners.
$ man xorg.conf
and search for "nobody"
;)
imap jf <ESC>
was very nice as I find it much more ergonomic. And to use it in Bash I have
set editing-mode vi set keymap vi
$if mode=vi set keymap vi-insert "jf": vi-movement-mode $endif
set show-all-if-ambiguous on