"Printf"의 두 판 사이의 차이

ph
이동: 둘러보기, 검색
(새 문서: ==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...)
(차이 없음)

2017년 9월 19일 (화) 15:59 판

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]