Created
June 22, 2012 00:41
-
-
Save barce/2969541 to your computer and use it in GitHub Desktop.
grepping for Hiragana, Katana and Romanji
This file contains hidden or 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
#!/bin/bash | |
grep '[\x{4E00}-\x{9FBF}|\x{3040}-\x{309F}|\x{30A0}-\x{30FF}]' test.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is actually more concise:
grep '[\x{4E00}-\x{9FBF}|\x{3040}-\x{30FF}]' test.txt