Created
May 29, 2013 06:42
-
-
Save CLCL/5668391 to your computer and use it in GitHub Desktop.
CentOS6近辺のコンソールでShift_JISのファイル群から特定の文字列を含む奴を探す。
ネットを探すとnkf使っている例があるけれども、今どきnkfもないよね、iconvで。
あと、LANG= ja_JP.UTF-8のコンソールだと、LANG=Cが無いとgrepで引っかかってくれないよ。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LANG=C grep -r -e `echo 'ピーチ'|iconv -tcp932`./ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment