"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...)
 
잔글
 
1번째 줄: 1번째 줄:
==Get hex code of a character==
+
===Get hex code of a character===
 
  $> printf "%x%x\n" "'A" "'a"
 
  $> printf "%x%x\n" "'A" "'a"
 
  4161
 
  4161

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]