diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-04 14:18:25 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-04 14:23:23 +1300 |
commit | 455d79db130768a7fae8e17d222f49d1466e5b46 (patch) | |
tree | 0b91148dd76f5922ff8108ff9bc8948adcee0ebe /man/man1/gwp.1df | |
parent | Tweaks to kvlt(6df) (diff) | |
download | dotfiles-455d79db130768a7fae8e17d222f49d1466e5b46.tar.gz dotfiles-455d79db130768a7fae8e17d222f49d1466e5b46.zip |
Add gwp(1)
Diffstat (limited to 'man/man1/gwp.1df')
-rw-r--r-- | man/man1/gwp.1df | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/man/man1/gwp.1df b/man/man1/gwp.1df new file mode 100644 index 00000000..c84cc12c --- /dev/null +++ b/man/man1/gwp.1df @@ -0,0 +1,23 @@ +.TH GWP 1df "December 2016" "Manual page for gwp" +.SH NAME +.B gwp +\- wordwise (alphanumeric) grep(1) +.SH SYNOPSIS +.B gwp WORD [FILE...] +.br +.SH DESCRIPTION +.B gwp +searches for complete alphanumeric words (not regular expressions) in the input and +prints the line if found. This means you can search for "test" and it won't +print lines just because they contain "latest". It's good for searching prose +or poetry rather than code. +.P +This is intended as a workaround for the absence of a portable implementation +of "word boundaries" in POSIX. Instead, this awk(1) script breaks each line +down into alphanumeric words and tests each one for case-insensitive equality. +.P +It does not emulate all of grep(1)'s features by any means, but does include +the feature of prefixing a matched line with the filename if more than one +filename was searched. +.SH AUTHOR +Tom Ryder <tom@sanctum.geek.nz> |