4 ms·
I fully agree, if you redefine grep as a byte search program, rather than for text search. Rule it out for most languages apart from English. To have any usabl
by barrkel 15y ago
I fully agree, if you redefine grep as a byte search program, rather than for text search. Rule it out for most languages apart from English.
To have any usable grep with applicability beyond programming languages, English-language log-files, etc. (i.e. massive Anglocentrism), the normalizing would need to be built-in. Sketched:
#!/usr/bin/bash
regex="$1"; shift
unicode-normalize-to-utf8 "$@" | byte-grep "$(utf8-byteify-regex "$regex")"