echo(ãã«ãã¤ã³ã³ãã³ã)ã使ãã®ã¨
$ echo -e '\u3042' ã
$'string'ã使ãæ¹æ³ããã
$ echo $'\u3042' ã
ãã¼ã¸ã§ã³4ããã¿ããã ãã
ãã¨ãbashãã®ãã®ã§ã¯ãªããã©GNU coreutilsã®printfã¤ããã¨ã³ã¼ããã¤ã³ããæå®ãã¦åºåã§ãããã©ãã
$ printf '\u3042\n' ã
ããã使ãã¨ã³ã¼ããã¤ã³ãã®ç¯å²ãæå®ãã¦ä¸è¦§åºåã¨ãã§ããã以ä¸ã¯ã²ãããªä¸è¦§(U+3040ãU+309F)ãåºåããä¾
$ for s in `seq 0x3040 0x309f`; do echo -e \\u`printf "%04x" $s`; done ã ã ã ã ã ã ã ã ã ã ã ...
seqã£ã¦16é²æ°æ±ãããã ãã