3 ms·
Indeed. And here are some concrete examples around locale: $ grep -V | head -n1 grep (GNU grep) 3.11 $ alias ugrep-grep="ugrep-4.4.1 -G -U -Y -. --
by burntsushi 3y ago
Indeed. And here are some concrete examples around locale:
$ grep -V | head -n1
grep (GNU grep) 3.11
$ alias ugrep-grep="ugrep-4.4.1 -G -U -Y -. --sort -Dread -dread"
$ echo 'pokémon' | LC_ALL=en_US.UTF-8 grep 'pok[[=e=]]mon'
pokémon
$ echo 'pokémon' | LC_ALL=en_US.UTF-8 ugrep-grep 'pok[[=e=]]mon'
$ echo 'γ' | LC_ALL=en_US.UTF-8 grep -i 'Γ'
γ
$ echo 'γ' | LC_ALL=en_US.UTF-8 ugrep-grep -i 'Γ'
BSD grep works like GNU grep too:
$ grep -V
grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
$ echo 'pokémon' | LC_ALL=en_US.UTF-8 grep 'pok[[=e=]]mon'
pokémon
$ echo 'γ' | LC_ALL=en_US.UTF-8 grep -i 'Γ'
γ