{"id":815,"date":"2015-05-19T22:41:43","date_gmt":"2015-05-20T07:41:43","guid":{"rendered":"http:\/\/blog.box.kr\/?p=815"},"modified":"2015-05-19T22:41:43","modified_gmt":"2015-05-20T07:41:43","slug":"lunix-%ec%97%90%ec%84%9c-%ed%8a%b9%ec%a0%95-%eb%ac%b8%ec%9e%90%ec%97%b4-%ec%9c%84%ec%b9%98-%ed%91%9c%ec%8b%9c-%eb%b0%8f-%ea%b5%ac%ea%b0%84-%ec%a0%95%eb%b3%b4-%eb%b3%b4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/blog.box.kr\/?p=815","title":{"rendered":"L(U)nix \uc5d0\uc11c \ud2b9\uc815 \ubb38\uc790\uc5f4 \uc704\uce58 \ud45c\uc2dc \ubc0f \uad6c\uac04 \uc815\ubcf4 \ubcf4\uae30"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>grep \u00a0 -n &#8220;\ud328\ud134&#8221; \u00a0\ud654\uc77c\uba85 \u00a0\uc5d0\uc11c \ucc98\ub7fc \u00a0-n \uc635\uc158\uc744 \uc0ac\uc6a9\ud558\uba74 \ucc3e\uace0\uc790 \ud558\ub294 \ubb38\uc790\uc5f4\uc774 \ud3ec\ud568\uc774 \ub418\uc5b4 \uc788\ub294 line number\ub97c \ud45c\uc2dc \ud574 \uc900\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>sed -n &#8216;xxxx,xxxxp&#8217; \u00a0\ud654\uc77c\uba85 \u00a0 \uc774\ub807\uac8c \ud558\uba74 \ud654\uc77c\uc5d0\uc11c xxxx\uc5d0\uc11c xxxxp\uae4c\uc9c0\uc758 \ub0b4\uc6a9\uc744 \ucd9c\ub825 \ud574 \uc900\ub2e4. ( p\ub294 \ub4a4\uc5d0\ub9cc \ubd99\uc784 )<\/p>\n<p>ex) xxx.log\uc5d0\uc11c 100\uc904 \uc5d0\uc11c 200\uc904\ub9cc \ud45c\uc2dc \ud558\uae30<br \/>\n=&gt; sed -n &#8216;100,200p&#8217; \ud654\uc77c\uba85<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; grep \u00a0 -n &#8220;\ud328\ud134&#8221; \u00a0\ud654\uc77c\uba85 \u00a0\uc5d0\uc11c \ucc98\ub7fc \u00a0-n \uc635\uc158\uc744 \uc0ac\uc6a9\ud558\uba74 \ucc3e\uace0\uc790 \ud558\ub294 \ubb38\uc790\uc5f4\uc774 \ud3ec\ud568\uc774 \ub418\uc5b4 \uc788\ub294 line number\ub97c \ud45c\uc2dc \ud574 \uc900\ub2e4. &nbsp; sed -n &#8216;xxxx,xxxxp&#8217; \u00a0\ud654\uc77c\uba85 \u00a0 \uc774\ub807\uac8c \ud558\uba74 \ud654\uc77c\uc5d0\uc11c xxxx\uc5d0\uc11c xxxxp\uae4c\uc9c0\uc758 \ub0b4\uc6a9\uc744 \ucd9c\ub825 \ud574 \uc900\ub2e4. ( p\ub294 \ub4a4\uc5d0\ub9cc \ubd99\uc784 ) ex) xxx.log\uc5d0\uc11c 100\uc904 \uc5d0\uc11c 200\uc904\ub9cc \ud45c\uc2dc \ud558\uae30 =&gt; sed -n &#8216;100,200p&#8217; \ud654\uc77c\uba85 &nbsp; &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"ngg_post_thumbnail":0,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[5],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5q9Zn-d9","jetpack-related-posts":[{"id":1266,"url":"https:\/\/blog.box.kr\/?p=1266","url_meta":{"origin":815,"position":0},"title":"QR \ucf54\ub4dc \uc2a4\uce94(QR Code Scan) \ucd08\uac04\ub2e8 \uc608\uc81c(Simple example)","date":"2021-05-18","format":false,"excerpt":"https:\/\/pub.dev\/packages \uc5d0\uc11c qrscan \uac80\uc0c9 AndroidManifest.xml \ud37c\ubbf8\uc158 \ucd94\uac00 \uc704\uce58 : project\/android\/app\/src\/main\/AndroidManifext.xml \uc548\ub4dc\ub85c\uc774\ub4dc\uc758 \uce74\uba54\ub77c\uc640 \uc800\uc7a5\uc18c \uc81c\uc5b4\ub97c \uc704\ud55c \ud37c\ubbf8\uc158\uc744 \ucd94\uac00\ud574 \uc900\ub2e4. \uc2e4\uc81c \uc6b0\ub9ac\uac00 \ud14c\uc2a4\ud2b8\ud558\ub294 \ucf54\ub4dc\uc5d0\ub294 \uad73\uc774 \uc800\uc7a5\uc18c \uad00\ub828\uc740 \ud544\uc694 \uc5c6\uc9c0\ub9cc qrscan \ud328\ud0a4\uc9c0 \ub0b4\uc5d0\uc11c \ubaa8\ub450 \uc0ac\uc6a9\ud558\ub2c8 \uc5b4\uca54 \uc218 \uc5c6\ub2e4. <uses-permission android:name=\"android.permission.CAMERA\" \/> <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"\/> <uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"\/> import 'dart:async'; import 'package:flutter\/material.dart'; import 'package:qrscan\/qrscan.dart' as scanner;\u2026","rel":"","context":"In &quot;flutter&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":799,"url":"https:\/\/blog.box.kr\/?p=799","url_meta":{"origin":815,"position":1},"title":"[scrap] grep , sed, awk \uc815\uaddc\uc2dd","date":"2015-05-17","format":false,"excerpt":"** grep \ud55c \ub370\uc774\ud130 \uc911 3\ubc88\uc9f8 \ud56d\ubaa9\ub9cc \uac00\uc838 \uc624\uace0 \uc2f6\uc744\ub54c.. grep \".xml\" | awk 'print {$3}' http:\/\/unabated.tistory.com\/447 \uc815\uaddc\uc2dd\uc774\ub780 \ubb34\uc5c7\uc778\uac00 ? \uc5b4\ub5a4 \ubb38\uc790\uc5f4\uc758 \uc9d1\ud569\uc744 \ubb18\uc0ac\ud558\ub294\ub370 \uc0ac\uc6a9\ub418\ub294 \ud14d\uc2a4\ud2b8 \uc2a4\ud2b8\ub9c1 \uc815\ud574\uc9c4 \uad6c\ubb38 \uaddc\uce59\uc5d0 \ub530\ub978\ub2e4 Editor, Utillity, Programming \uc5b8\uc5b4\uc5d0\uc11c \ud14d\uc2a4\ud2b8 \ud328\ud134\uc744 \uae30\uc900\uc73c\ub85c \uac80\uc0c9, \ud639\uc740 \uc870\uc791\ud558\ub294\ub370 \uc0ac\uc6a9\ub41c\ub2e4 \ubcf4\ud1b5 \uc0ac\ub78c\ub4e4\uc774 \uc4f0\ub294 \ud45c\ud604 \uc911\uc5d0\ub3c4 \uadf8\ub300\ub85c \ubb38\uc7a5\uc744 \ud574\uc11d\ud558\uba74\u2026","rel":"","context":"In &quot;Linux&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":562,"url":"https:\/\/blog.box.kr\/?p=562","url_meta":{"origin":815,"position":2},"title":"GIT\uc5d0\uc11c ignore\uc5d0 \uc788\ub294 \ud654\uc77c \uc0ad\uc81c \ud558\uae30..","date":"2015-01-26","format":false,"excerpt":"git rm --cached `git ls-files -i --exclude-from=.gitignore` git commit -m 'Removed all files that are in the .gitignore' git push origin master \uc774\ub7ec\uba74 .ignore \ud654\uc77c\uc5d0 \uc874\uc7ac \ud558\ub294 \ud654\uc77c\uc744 \ub808\ud30c\uc9c0\ud1a0\ub9ac\uc5d0\uc11c \ub2e4 \uc9c0\uc6cc \uc900\ub2e4. git ls-files -i --exclude-from=.gitignore > to_remove.txt while read line; do `git rm -r --cached \"$line\"`; done < to_remove.txt\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":807,"url":"https:\/\/blog.box.kr\/?p=807","url_meta":{"origin":815,"position":3},"title":"[scrap] mysql &#8211; dual master replication","date":"2015-05-18","format":false,"excerpt":"http:\/\/simonshin.egloos.com\/2247518 \/etc\/my.cnf \ud30c\uc77c \ub0b4\uc6a9 Below is what needs to be added to the configuration for Server A: server-id = 1 replicate-same-server-id = 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/\uc2ac\ub808\uc774\ube0c \uc11c\ubc84\uc5d0\uc11c \uc0ac\uc6a9\ub428. \uc77c\ubc18\uc801\uc73c\ub85c\ub294 \ub514\ud3f4\ud2b8 \uc124\uc815 \uac12\uc778 0\uc744 \uc0ac\uc6a9\ud558\ub294\ub370, \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/\uc774 \uac12\uc740 \uc21c\ud658 \ub9ac\ud50c\ub9ac\ucf00\uc774\uc158(circular replication)\uc5d0 \uc758\ud55c \ubb34\ud55c \ub8e8\ud504\ub97c \ubc29\uc9c0\ud569\ub2c8\ub2e4. \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/\uc774 \uac12\uc744 1\ub85c \uc124\uc815\ud55c\ub2e4\uba74, \uc2ac\ub808\uc774\ube0c\ub294 \uc790\uc2e0\uc758 \uc11c\ubc84\u2026","rel":"","context":"In &quot;DB\uad00\ub828&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":801,"url":"https:\/\/blog.box.kr\/?p=801","url_meta":{"origin":815,"position":4},"title":"[scrap] MySQL Replication \uc124\uc815\uacfc \uba87 \uac00\uc9c0 \ud14c\uc2a4\ud2b8","date":"2015-05-18","format":false,"excerpt":"http:\/\/blog.hibrainapps.net\/130 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 MySQL\uc744 DB\ub85c \uc0ac\uc6a9\ud558\uba74\uc11c \uc11c\ubc84\uc758 \ubd80\ud558 \ubd84\uc0b0\uc744 \uc704\ud55c \ubc29\ubc95 \uc911 \ud558\ub098\ub85c Replication \uc744 \uc0ac\uc6a9\ud55c\ub2e4. Replication \uc740 Master \ud558\ub098\uc5d0 n\uac1c\uc758 Slave\ub85c \uc9c0\uc815\uc774 \uac00\ub2a5\ud558\ub2e4. Slave\ub294 \ub2e4\uc2dc Master \uc5ed\ud560\uc744 \ud560\uc218 \uc788\uc73c\uba70 \uc5ed\uc2dc \ub610 \ub2e4\ub978 n\uac1c\uc758 Slave\ub97c \uc9c0\uc815\ud560 \uc218 \uc788\ub2e4. \ubd80\ud558 \ubd84\uc0b0\uc758 \ud6a8\uacfc\ub294 inser,update \ub4f1 \ubcc0\uacbd\uacfc \uad00\ub828\ub41c \ubaa8\ub4e0 \uc791\uc5c5\uc740\u2026","rel":"","context":"In &quot;DB\uad00\ub828&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":683,"url":"https:\/\/blog.box.kr\/?p=683","url_meta":{"origin":815,"position":5},"title":"[MariaDB] utf8mb4 \ub780?","date":"2015-04-13","format":false,"excerpt":"http:\/\/blog.lael.be\/post\/917 4\ubc14\uc774\ud2b8 UTF-8 \ubb38\uc790\uc5f4 MySQL\uc5d0\uc11c \ubd80\ub7b4\ubd80\ub7b4 \uc6d0\ub798\uc758 \uc124\uacc4\ub300\ub85c \uac00\ubcc0-4\ubc14\uc774\ud2b8 UTF-8 \ubb38\uc790\uc5f4\uc744 \uc800\uc7a5\ud560 \uc218 \uc788\ub294 \uc790\ub8cc\ud615\uc744 \ucd94\uac00\ud588\ub2e4. 2010\ub144 3\uc6d4 24\uc77c\uc5d0 utf8mb4 \ub77c\ub294 charset\uc744 \ucd94\uac00\ud558\uc600\ub2e4. (MYSQL 5.5.3 \uc5d0 \ucd94\uac00\ub428) (\uad00\ub828 :\u00a0https:\/\/dev.mysql.com\/doc\/relnotes\/mysql\/5.5\/en\/news-5-5-3.html ) > \ubd80\uc5f0\uc124\uba85 : utf8 \uc744 \ud328\uce58\ud558\uc9c0 \uc54a\uace0 \uc2e0\uaddc charset\uc73c\ub85c \ucd94\uac00\ud55c \uc774\uc720\ub294, \uc774\ubbf8 \uad6c\ucd95\ub41c \uc2dc\uc2a4\ud15c\uc5d0 \uc601\ud5a5\uc744 \ubbf8\uce58\uae30 \ub54c\ubb38\uc774\ub2e4. \uc989, \uc774\ubbf8 3\uce78\uc744\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"\u00ec\u008a\u00a4\u00ed\u0081\u00ac\u00eb\u00a6\u00b0\u00ec\u0083\u00b7 2015-03-07 \u00ec\u0098\u00a4\u00ed\u009b\u0084 7.05.17","src":"https:\/\/i0.wp.com\/blog.lael.be\/wp-content\/uploads\/2015\/03\/\u00ec\u008a\u00a4\u00ed\u0081\u00ac\u00eb\u00a6\u00b0\u00ec\u0083\u00b7-2015-03-07-\u00ec\u0098\u00a4\u00ed\u009b\u0084-7.05.17.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/815"}],"collection":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=815"}],"version-history":[{"count":0,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/815\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}