【发布时间】:2015-09-14 15:11:06
【问题描述】:
我正在使用以下命令来搜索和打印非 ascii 字符:
grep --color -R -C 2 -P -n "[\x80-\xFF]" .
我得到的输出打印出其中包含非 ascii 字符的行。 但是它不会打印实际的 unicode 字符。
有没有办法打印 unicode 字符?
输出
./test.yml-35-
./test.yml-36-- name: Flush Handlers
./test.yml:37: meta: flush_handlers
./test.yml-38-
--
【问题讨论】:
标签: linux shell unicode non-ascii-characters