Skip to content

Instantly share code, notes, and snippets.

@cornchz
Last active December 11, 2015 18:28
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 cornchz/4641629 to your computer and use it in GitHub Desktop.
Save cornchz/4641629 to your computer and use it in GitHub Desktop.
ucat() {
cat $@ | native2ascii -encoding UTF-8 -reverse
}
uhead() {
head $@ | native2ascii -encoding UTF-8 -reverse
}
$ head sample.json
[
  {
    "name_kr": "\ubc15\uc815\uadfc",
    "name_cn": "\u6734\u5b9a\u6839",
    "sex": "\ub0a8",
    "birthyear": "1897",

$ uhead sample.json
[
  {
    "name_kr": "박정근",
    "name_cn": "朴定根",
    "sex": "남",
    "birthyear": "1897",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment