~$ cat `which wgrep`#!/bin/bashARG="$1"ARGC="$(echo $ARG | sed -e 's/\\\^/./;s/\^//')"CARG="$(echo "$ARG" | iconv -t cp1251)"shiftgrep -Hn "$CARG" "$@" | iconv -f cp1251 | grep --color "$ARGC" -C100
LC_CTYPE=uk_UA.CP1251 grep -Hn "$CARG" "$@" | \LC_CTYPE=uk_UA.UTF-8 iconv -f cp1251 |\grep --color "$ARGC" -C100
$ cat `which wgrep`#!/bin/bashARG="$1"ARGC="$(echo $ARG | sed -e 's/\\\^/./;s/\^//')"CARG="$(echo "$ARG" | iconv -t cp1251)"shiftlct="$LC_CTYPE"LC_ALL=C grep -Hn "$CARG" "$@" |\LC_ALL="$lct" iconv -f cp1251 | grep --color "$ARGC" -C100