Printf

ph
Admin (토론 | 기여)님의 2017년 9월 19일 (화) 15:59 판 (새 문서: ==Get hex code of a character== $> printf "%x%x\n" "'A" "'a" 4161 In manual page, <br> ''If the leading character is a single-quote or double-quote, the value shall be the numeric v...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
이동: 둘러보기, 검색

Get hex code of a character

$> printf "%x%x\n" "'A" "'a"
4161

In manual page,
If the leading character is a single-quote or double-quote, the value shall be the numeric value in the underlying codeset of the character following the single-quote or double-quote. [1]