Skip to content

Instantly share code, notes, and snippets.

@CLCL
Created May 29, 2013 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CLCL/5668391 to your computer and use it in GitHub Desktop.
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で引っかかってくれないよ。
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