{"id":339,"date":"2012-07-11T04:40:12","date_gmt":"2012-07-10T19:40:12","guid":{"rendered":"http:\/\/litcoder.cafe24.com\/?p=339"},"modified":"2012-07-11T04:40:12","modified_gmt":"2012-07-10T19:40:12","slug":"tip-hex-string%ec%9d%84-bash%ec%97%90%ec%84%9c-%eb%b3%b4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/litcoder.com\/?p=339","title":{"rendered":"[Tip] Hex string\uc744 bash\uc5d0\uc11c \ubcf4\uae30"},"content":{"rendered":"<p>Unix command\uc778 echo\ub97c -e option\uacfc \ud568\uaed8\uc4f0\uba74 &#8216;\\x&#8217;\ub85c escape\ub41c hex\uac12\uc744 \ubb38\uc790\ub85c \ubcf4\uc5ec \uc900\ub2e4.<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">$ echo -e \"\\x5B\\xEB\\xAC\\xBC\\xEB\\x86\\x80\\xEC\\x9D\\xB4\\x20\\xEA\\xB7\\xB8\\xEB\\xA6\\xBC\\xED\\x8C\\x90\\x5D\"\n[\ubb3c\ub180\uc774 \uadf8\ub9bc\ud310]<\/pre>\n<p>Web browser\ub4f1\uc5d0\uc11c\ub294 &#8216;\\x&#8217;\uac00 \uc544\ub2cc &#8216;%&#8217;\ub97c escape character\ub85c \uc0ac\uc6a9\ud558\uae30\ub3c4 \ud558\ub294\ub370 \uc774\ub7f0\uacbd\uc6b0\ub294 bash\uc758 string \uce58\ud658\uc744 \uc0ac\uc6a9\ud574\uc11c &#8216;\\x&#8217;\ub85c \ubcc0\ud658\ud574\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4.<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">$ str='\\x5B\\xEB\\xAC\\xBC\\xEB\\x86\\x80\\xEC\\x9D\\xB4\\x20\\xEA\\xB7\\xB8\\xEB\\xA6\\xBC\\xED\\x8C\\x90\\x5D'\n\n$ echo -e ${str\/\/%\/\\\\x}\n[\ubb3c\ub180\uc774 \uadf8\ub9bc\ud310]<\/pre>\n<p>* Bash\uc5d0\uc11c string\uc744 \ub2e4\ub8e8\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574\uc11c\ub294 <a href=\"http:\/\/wiki.kldp.org\/HOWTO\/html\/Adv-Bash-Scr-HOWTO\/string-manipulation.html\" target=\"_blank\" rel=\"noopener noreferrer\">KLDP\uc758 \uc774 \ubb38\uc11c<\/a>\ub97c \ucc38\uace0.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unix command\uc778 echo\ub97c -e option\uacfc \ud568\uaed8\uc4f0\uba74 &#8216;\\x&#8217;\ub85c escape\ub41c hex\uac12\uc744 \ubb38\uc790\ub85c \ubcf4\uc5ec \uc900\ub2e4. $ echo -e &#8220;\\x5B\\xEB\\xAC\\xBC\\xEB\\x86\\x80\\xEC\\x9D\\xB4\\x20\\xEA\\xB7\\xB8\\xEB\\xA6\\xBC\\xED\\x8C\\x90\\x5D&#8221; [\ubb3c\ub180\uc774 \uadf8\ub9bc\ud310] Web browser\ub4f1\uc5d0\uc11c\ub294 &#8216;\\x&#8217;\uac00 \uc544\ub2cc &#8216;%&#8217;\ub97c escape character\ub85c \uc0ac\uc6a9\ud558\uae30\ub3c4 \ud558\ub294\ub370 \uc774\ub7f0\uacbd\uc6b0\ub294 bash\uc758 string \uce58\ud658\uc744 \uc0ac\uc6a9\ud574\uc11c &#8216;\\x&#8217;\ub85c \ubcc0\ud658\ud574\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4. $ str=&#8217;\\x5B\\xEB\\xAC\\xBC\\xEB\\x86\\x80\\xEC\\x9D\\xB4\\x20\\xEA\\xB7\\xB8\\xEB\\xA6\\xBC\\xED\\x8C\\x90\\x5D&#8217; $ echo -e ${str\/\/%\/\\\\x} [\ubb3c\ub180\uc774 \uadf8\ub9bc\ud310] * Bash\uc5d0\uc11c string\uc744 \ub2e4\ub8e8\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574\uc11c\ub294 KLDP\uc758 \uc774 \ubb38\uc11c\ub97c \ucc38\uace0.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4],"tags":[20,125],"class_list":["post-339","post","type-post","status-publish","format-standard","hentry","category-linux","tag-bash","tag-tip"],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":4374,"url":"https:\/\/litcoder.com\/?p=4374","url_meta":{"origin":339,"position":0},"title":"Rust \ud504\ub85c\uadf8\ub798\ubc0d\uc5d0\uc11c map() \ud65c\uc6a9","author":"litcoder","date":"2026\ub144 5\uc6d4 13\uc77c","format":false,"excerpt":"Python\uc774 \uadf8\ub7ec\ud558\ub4ef Rust\ub3c4 declarative programming(\uc120\uc5b8\ud615 \ud504\ub85c\uadf8\ub798\ubc0d)\uc744 \uc9c0\uc6d0\ud55c\ub2e4. \uadf8 \uc911 map()\uc740 \uc774\ub7ec\ud55c \ucf54\ub529\uc2a4\ud0c0\uc77c\uc758 \ub300\ud45c\ucc98\ub7fc \uc0ac\uc6a9\ub418\uace0\ub294 \ud558\ub294\ub370, \uc774\uac83\uc744 \uc774\uc6a9\ud558\uba74 \uae38\uace0 \uc7a5\ud669\ud55c \ucf54\ub4dc\ub97c \uac04\uacb0\ud558\uac8c \ub098\ud0c0\ub0bc \uc218 \uc788\ub2e4. \uae30\ubcf8\uc801 \uc0ac\uc6a9\ubc95 1 \ubd80\ud130 10\uae4c\uc9c0 1\uc529 \uc99d\uac00\ud558\ub294 \uac12\uc744 \uac00\uc9c4 i32 \ud615\uc758 10\uce78\uc9dc\ub9ac \ubc30\uc5f4 arr\uc774 \uc788\ub2e4\uace0 \ud560 \ub54c, \uadf8 \uc548\uc5d0 \uc788\ub294 \uac01 \uc6d0\uc18c\ub4e4\uc5d0 2\ub97c \uacf1\ud558\ub294 \ucf54\ub4dc\uc774\ub2e4. \/\/\u2026","rel":"","context":"&quot;Programming&quot;\uc5d0\uc11c","block_context":{"text":"Programming","link":"https:\/\/litcoder.com\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4025,"url":"https:\/\/litcoder.com\/?p=4025","url_meta":{"origin":339,"position":1},"title":"OpenVINO Object Detection Model\uc758 \uc804\ucc98\ub9ac\uc640 \ud6c4\ucc98\ub9ac\ub97c \uac04\ub2e8\ud558\uac8c","author":"litcoder","date":"2026\ub144 1\uc6d4 28\uc77c","format":false,"excerpt":"AI model\ub4e4\uc740 \uc785\ucd9c\ub825 layer\uc758 \uad6c\uc870\uac00 \ub2e4\ub974\ubbc0\ub85c \uc11c\ub85c \ub2e4\ub978 pre\/post processing\uc744 \ud544\uc694\ub85c \ud55c\ub2e4. Vision model\uc744 \uc608\ub85c \ub4e4\uba74 \uc5b4\ub5a4 \ubaa8\ub378\uc740 \uc785\ub825\uc744 416x416\uc73c\ub85c \ubc1b\uac8c \ub418\uc5b4 \uc788\uc5b4\uc11c \uc785\ub825 \uc804\uc5d0 \uc6d0\ubcf8 \ud06c\uae30\ub85c \ubd80\ud130 resizing\uc744 \ud574\uc8fc\uc5b4\uc57c \ud558\uace0, \uc5b4\ub5a4 \ubaa8\ub378\uc740 resizing layer\uc744 \ud3ec\ud568\ud558\uace0 \uc788\uc5b4\uc11c \uadf8\ub0e5 \uc785\ub825\ud574\ub3c4 \uc798 \ub3d9\uc791\ud558\uae30\ub3c4 \ud55c\ub2e4. \ub610\ud55c \uc5b4\ub5a4 \ubaa8\ub378\uc740 \uc785\ub825\uac12\uc744 \uc815\uaddc\ud654 \ud574\uc11c \uc785\ub825\ud574 \uc8fc\uc5b4\uc57c\u2026","rel":"","context":"&quot;Programming&quot;\uc5d0\uc11c","block_context":{"text":"Programming","link":"https:\/\/litcoder.com\/?cat=5"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":466,"url":"https:\/\/litcoder.com\/?p=466","url_meta":{"origin":339,"position":2},"title":"Android NDK build architecture \ubcc0\uacbd\ud558\uae30","author":"litcoder","date":"2013\ub144 1\uc6d4 17\uc77c","format":false,"excerpt":"\uc544\ubb34 \uc124\uc815 \uc5c6\uc774 ndk\ub97c build \ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 arm\uc6a9 library\uac00 \ub9cc\ub4e4\uc5b4\uc9c4\ub2e4. $ <NDK_PATH>\/ndk-build Gdbserver : [arm-linux-androideabi-4.6] libs\/armeabi\/gdbserver Gdbsetup : libs\/armeabi\/gdb.setup Compile thumb : hello-jni <= hello-jni.c SharedLibrary : libhello-jni.so Install : libhello-jni.so => libs\/armeabi\/libhello-jni.so $ file obj\/local\/armeabi\/libhello-jni.so obj\/local\/armeabi\/libhello-jni.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, not\u2026","rel":"","context":"&quot;Android&quot;\uc5d0\uc11c","block_context":{"text":"Android","link":"https:\/\/litcoder.com\/?cat=2"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3116,"url":"https:\/\/litcoder.com\/?p=3116","url_meta":{"origin":339,"position":3},"title":"CARLA client\ub97c build\ud574\uc57c \ud558\ub294\ub370 clang-8\uc774 \uc5c6\ub304\ub2e4.","author":"litcoder","date":"2022\ub144 7\uc6d4 27\uc77c","format":false,"excerpt":"2022\ub144 9\uc6d4 \ud604\uc7ac CARLA simulator\uc758 \ucd5c\uc2e0 \ubc84\uc804\uc778 0.9.13\uc73c\ub85c PythonAPI\ub97c \ube4c\ub4dc\ud558\ub824\uace0 \ud558\uba74 clang-8 version\uc744 \uc694\uad6c\ud558\ub294\ub370 Ubuntu 22.04\uc5d0\uc11c\ub294 clang-8\uc758 repository\ub97c \ucd94\uac00\ud558\uace0 \uc124\uce58 \uc2dc\ub3c4\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \uc758\uc874\uc131 \uc624\ub958\uac00 \uc0dd\uae34\ub2e4. The following packages have unmet dependencies: clang-8 : Depends: libllvm8 (>= 1:8~svn298832-1~) but it is not going to be installed Depends: libstdc++-5-dev but it\u2026","rel":"","context":"&quot;Linux&quot;\uc5d0\uc11c","block_context":{"text":"Linux","link":"https:\/\/litcoder.com\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1034,"url":"https:\/\/litcoder.com\/?p=1034","url_meta":{"origin":339,"position":4},"title":"Android emacs (android-host.el) \uae30\ub2a5 \ucd94\uac00","author":"litcoder","date":"2014\ub144 8\uc6d4 27\uc77c","format":false,"excerpt":"AOSP\uc5d0\uc11c \uc81c\uacf5\ub418\ub294 Emacs\uc6a9 Andorid \uac1c\ubc1c\ud658\uacbd\uc744 \uc124\uc815\ud55c \uc774\ud6c4(\uc774 post \ucc38\uc870) \uc798 \ubaa8\ub974\ub294 LISP\uc744 \ub354\ub4ec\uc5b4 \uac00\uba70 \ucd94\uac00\ud55c \uba87 \uac00\uc9c0 \uae30\ub2a5\uc744 \uc18c\uac1c\ud569\ub2c8\ub2e4. adb reboot (M-x android-adb-reboot) Module\ub4f1\uc744 \ubcc0\uacbd\ud55c \ud6c4\uc5d0 device\ub97c reset\ud558\ub294 \uba85\ub839\uc5b4\uac00 \uc5c6\uc5b4\uc11c \ucd94\uac00\ud588\ub2e4. \uc774 \uae30\ub2a5\uc758 \uc7a5\uc810\uc744 \uad73\uc774 \uaf3d\uc790\uba74 shell\uc744 \ub530\ub85c \ub6f0\uc6b0\uc9c0 \uc54a\uace0 \ub9ac\ubd93\uc744 \ud560\uc218 \uc788\ub2e4\ub294\uac70... (defun android-adb-reboot () \"Execute 'adb reboot'.\" (interactive)\u2026","rel":"","context":"&quot;Android&quot;\uc5d0\uc11c","block_context":{"text":"Android","link":"https:\/\/litcoder.com\/?cat=2"},"img":{"alt_text":"icon_text_file","src":"https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2014\/08\/1408382052_12.File_.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":437,"url":"https:\/\/litcoder.com\/?p=437","url_meta":{"origin":339,"position":5},"title":"WARNING: terminal is not fully functional","author":"litcoder","date":"2012\ub144 12\uc6d4 30\uc77c","format":false,"excerpt":"mac\uc5d0\uc11c git\uad00\ub828 command\ub098 man \uba85\ub839\uc5b4\uc640 \uac19\uc774 more\/less\ub97c \uc0ac\uc6a9\ud558\ub294 \uc2e4\ud589\uc744 \ud560 \ub54c \ub2e4\uc74c\uacfc \uac19\uc740 \uacbd\uace0\uac00 \ucd9c\ub825\ub418\ub294 \uacbd\uc6b0\uac00 \uc788\ub2e4. WARNING: terminal is not fully functional - (press RETURN) max os x\uc758 \uacbd\uc6b0 $TERM\uac12\uc774 \uae30\ubcf8\uc801\uc73c\ub85c xterm-256color\ub85c \uc124\uc815\ub418\ub294\ub370,\u00a0Xcode\ub97c \uc124\uce58 \ud560 \ub54c terminal\uad00\ub828 \uc815\ubcf4\uac00 \uc0ad\uc81c\ub418\uc11c \uc774 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud55c\ub2e4\uace0 \ud55c\ub2e4. \uac04\ub2e8\ud558\uac8c\ub294 \ud130\ubbf8\ub110 -> \ud658\uacbd\uc124\uc815 -> \uace0\uae09\uc5d0\uc11c\u2026","rel":"","context":"&quot;Tools &amp; Tips&quot;\uc5d0\uc11c","block_context":{"text":"Tools &amp; Tips","link":"https:\/\/litcoder.com\/?cat=6"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=339"}],"version-history":[{"count":0,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/339\/revisions"}],"wp:attachment":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}