Skip to content

Instantly share code, notes, and snippets.

@barce
Created June 22, 2012 00:41
Show Gist options
  • Save barce/2969541 to your computer and use it in GitHub Desktop.
Save barce/2969541 to your computer and use it in GitHub Desktop.
grepping for Hiragana, Katana and Romanji
#!/bin/bash
grep '[\x{4E00}-\x{9FBF}|\x{3040}-\x{309F}|\x{30A0}-\x{30FF}]' test.txt
@barce
Copy link
Author

barce commented Jun 22, 2012

This is actually more concise:

grep '[\x{4E00}-\x{9FBF}|\x{3040}-\x{30FF}]' test.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment