{"id":1770,"date":"2013-01-09T11:21:15","date_gmt":"2013-01-09T02:21:15","guid":{"rendered":"http:\/\/auctionpro.co.kr\/?p=1770"},"modified":"2026-02-20T11:29:52","modified_gmt":"2026-02-20T02:29:52","slug":"%ec%98%81%ec%96%b4-grep","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=1770","title":{"rendered":"grep \uba85\ub839\uc5b4"},"content":{"rendered":"\n<p><strong>grep<\/strong>(\uadf8\ub819)\uc740&nbsp;<a href=\"https:\/\/ko.wikipedia.org\/wiki\/%EC%9C%A0%EB%8B%89%EC%8A%A4\">\uc720\ub2c9\uc2a4<\/a>\ub97c \uc704\ud574 \ub9cc\ub4e4\uc5b4\uc9c4 \ud14d\uc2a4\ud2b8 \uac80\uc0c9 \uae30\ub2a5\uc744 \uac00\uc9c4 \uba85\ub839\uc5b4\uc774\ub2e4. \uadf8 \uc774\ub984\uc740&nbsp;<a href=\"https:\/\/ko.wikipedia.org\/wiki\/%EC%9C%A0%EB%8B%89%EC%8A%A4\">\uc720\ub2c9\uc2a4<\/a>&nbsp;<a href=\"https:\/\/ko.wikipedia.org\/wiki\/Ed_(%EB%AC%B8%EC%84%9C_%ED%8E%B8%EC%A7%91%EA%B8%B0)\">ed<\/a>\uc758 \uba85\ub839\uc5b4\ub85c \ube44\uc2b7\ud55c \uae30\ub2a5\uc744 \uc218\ud589\ud558\ub294&nbsp;<em>g\/re\/p<\/em>\uc5d0\uc11c \uc720\ub798\ub418\uc5c8\ub2e4.<sup><a href=\"https:\/\/ko.wikipedia.org\/wiki\/Grep#cite_note-etymology-3\">[3]<\/a><\/sup><\/p>\n\n\n\n<p><em>grep<\/em>\uc740 \uc5c4\ubc00\ud788 \ub9d0\ud558\uba74 \ub450\ubb38\uc790\uc5b4(\uba38\ub9ac\uae00\uc790\ub85c \ub41c \ub9d0)\uc740 \uc544\ub2c8\uc9c0\ub9cc&nbsp;<em>global<\/em>&nbsp;\/&nbsp;<em>regular expression<\/em>&nbsp;\/&nbsp;<em>print<\/em>\uc5d0\uc11c \uac01\uac01\uc758 \uba38\ub9bf\uae00\uc790\ub97c \ub530 \uc628 \uac83\uc774\uba70 \uc774\uac83\uc740 ed \ud14d\uc2a4\ud2b8 \ud3b8\uc9d1\uae30\uc5d0\uc11c \uc4f0\uc774\ub294 \uc5f0\uc18d\uc801\uc778 \uc9c0\uc2dc\uc5b4\uc774\ub2e4.&nbsp;<em>grep<\/em>&nbsp;\uba85\ub839\uc5b4\ub294 \ud30c\uc77c\uc774\ub098 \ud45c\uc900 \uc785\ub825\uc744 \uac80\uc0c9\ud558\uc5ec \uc8fc\uc5b4\uc9c4&nbsp;<a href=\"https:\/\/ko.wikipedia.org\/wiki\/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D\">\uc815\uaddc \ud45c\ud604\uc2dd<\/a>\uacfc \ub9de\ub294 \uc904\uc744 \ucc3e\uc544 \ud504\ub85c\uadf8\ub7a8\uc758 \ud45c\uc900 \ucd9c\ub825\uc73c\ub85c \ucd9c\ub825\ud55c\ub2e4.<\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p><span style=\"color: #000000;\">grep \uba85\ub839\uc5b4\ub294 \uc9c0\uc815\ud55c \ud30c\uc77c \ub0b4\uc5d0\uc11c \ud2b9\uc815 \ubb38\uc790\uc5f4\uc744 \uac80\uc0c9\ud560 \ub54c \uc0ac\uc6a9\ud558\ub294 \uba85\ub839\uc5b4 \uc785\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uba85\ub839\uc5b4 \uc704\uce58 : \/bin\/grep<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc0ac\uc6a9\ud615\uc2dd : grep [\uc635\uc158] \uac80\uc0c9\ud560\ubb38\uc790\uc5f4<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc6081) \uc9c0\uc815\ub41c \ud30c\uc77c \ub0b4\uc5d0\uc11c \ud2b9\uc815\ubb38\uc790\ub97c \ucc3e\uae30<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">httpd.conf \ud30c\uc77c\uc548\uc5d0\uc11c&nbsp;root \ub77c\ub294 \ub2e8\uc5b4\ub97c \ucc3e\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">#grep&nbsp;root httpd.conf<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp; #httpd as root initially and it will switch.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc704 \uc640\uac19\uc740 \uacb0\uacfc\uac00 \ucd9c\ub825\ub418\uace0&nbsp;\ucd9c\ub825\ub41c&nbsp;\ud589\uc548\uc5d0&nbsp;root&nbsp;\ub77c\ub294 \ub2e8\uc5b4\uac00&nbsp;\ud3ec\ud568\ub418\uc5b4 \uc788\ub294\uac83\uc744 \ud655\uc778 \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc6082) \uc9c0\uc815\ub41c \ud30c\uc77c \ub0b4\uc5d0\uc11c \ud2b9\uc815\ubb38\uc790\uac00 \ud3ec\ud568\ub41c \ud589\uc758 \uac1c\uc218 \ucd9c\ub825\ud558\uae30<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;\ud2b9\uc815\ubb38\uc790\uac00 \ud3ec\ud568\ub41c \ud589\uc744 \ubcf4\uc5ec\uc8fc\ub294 \uac83\uc774 \uc544\ub2c8\ub77c \ud2b9\uc815\ubb38\uc790\ub97c \ud3ec\ud568\ud558\uace0\uc788\ub294 \ud589\uc758 \uac1c\uc218\ub97c \uc54c\uace0 \uc2f6\ub2e4\uba74<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;-c \uc635\uc158\uc744 \uc0ac\uc6a9\ud558\uba74 \ub429\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;httpd.conf \ud30c\uc77c \ub0b4\uc5d0 root \ub77c\ub294 \ub2e8\uc5b4\ub97c \ud3ec\ud568\ud558\uace0 \uc788\ub294 \ud589\uc758 \uac1c\uc218\ub97c \ucd9c\ub825\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">#grep -c root httpd.conf<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc704\uc758 \uacb0\uacfc\ub97c \ubcf4\ub4ef\uc774 httpd.conf \ud30c\uc77c \ub0b4\uc5d0\ub294 root\ub97c \ud3ec\ud568\ud558\uace0 \uc788\ub294 \ud589\uc758 \uac1c\uc218\uac00 1\uac1c \uc784\uc744 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc6083) \uc9c0\uc815\ub41c \ud30c\uc77c \uc548\uc5d0\uc11c \ud2b9\uc815\ubb38\uc790\uac00 \ud3ec\ud568\ub418\uc9c0 \uc54a\uc740 \ud589\ub9cc \uac80\uc0c9\ud558\uae30<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc9c0\uc815\ub41c \ud30c\uc77c\uc548\uc5d0\uc11c \ud2b9\uc815\ubb38\uc790\uac00 \ud3ec\ud568\ub418\uc9c0 \uc54a\uc740 \ud589\uc744 \uac80\uc0c9\ud558\ub824\uba74&nbsp;-v \uc635\uc158\uc744 \uc0ac\uc6a9\ud558\uba74 \ub429\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">test1.txt \uc5d0\uc11c&nbsp;windows \ub77c\ub294 \ubb38\uc790\ub97c&nbsp;\ud3ec\ud568\ud558\uc9c0 \uc54a\ub294 \ud589\uc744 \uac80\uc0c9\ud574 \ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc6b0\uc120 tset1.txt \ud30c\uc77c \uc548\uc758 \ub0b4\uc6a9\uc744 \uc0b4\ud3b4\ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">#cat test1.txt<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">Centos linux<br>\nuser name<br>\nsystem123<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">microsoft windows<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">test1.txt \ud30c\uc77c\uc5d0\uc11c windows\ub77c\ub294 \ubb38\uc790\uac00 \uc874\uc7ac\ud558\uc9c0 \uc54a\ub294 \ud589\ub9cc \uac80\uc0c9\ud558\uace0 \uc2f6\ub2e4\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \ud558\uba74 \ub429\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">#grep -v windows test1.txt<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">Centos linux<br>\nuser name<br>\nsystem123<br>\n<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc704\uc758 \uacb0\uacfc\ucc98\ub7fc windows\ub77c\ub294 \ubb38\uc790\uac00 \uc874\uc7ac\ud558\ub294 \ud589\uc744 \uc81c\uc678\ud55c \ubaa8\ub4e0\ud589\uc774 \ucd9c\ub825 \ub418\uc5c8\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc6084) \uc9c0\uc815\ub41c \ud30c\uc77c \ub0b4\uc5d0\uc11c \ub300\uc18c\ubb38\uc790 \uad6c\ubd84\uc5c6\uc774 \ud2b9\uc815\ubb38\uc790 \uac80\uc0c9\ud558\uae30<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\ub9ac\ub205\uc2a4\uc2dc\uc2a4\ud15c\uc5d0\uc11c\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \ub300\uc18c\ubb38\uc790\ub97c \uad6c\ubd84\ud569\ub2c8\ub2e4. \ud558\uc9c0\ub9cc \ub300\uc18c\ubb38\uc790\uc758 \uad6c\ubd84 \uc5c6\uc774 \uac80\uc0c9\ud558\uace0 \uc2f6\ub2e4\uba74 -i \uc635\uc158\uc744 \uc0ac\uc6a9\ud558\uba74 \ub429\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">-i \uc635\uc158\uc744 \uc124\uba85\ud558\uae30 \uc704\ud574\uc11c test2.txt \ub77c\ub294 \ud30c\uc77c\uc744 \uc0ac\uc6a9\ud558\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc6b0\uc120 test2.txt \ud30c\uc77c\uc548\uc758 \ub0b4\uc6a9\uc744 \uc0b4\ud3b4\ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">#cat test2.txt<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">I am system engineer<br>\nLinux is open source software<br>\n<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">test2.txt \ud30c\uc77c\uc740 \uc704\uc640 \uac19\uc740 \ub450\ud589\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">-i \uc635\uc158\uc744 \uc0ac\uc6a9\ud558\uc9c0 \uc54a\uace0 linux\ub77c\ub294 \ub2e8\uc5b4\ub97c \uac80\uc0c9\ud574 \ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">#grep linux test2.txt<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc704\uc640\uac19\uc774 \uc544\ubb34\ub7f0 \uacb0\uacfc\uac00 \ub098\uc624\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc774\ubc88\uc5d4 -i \uc635\uc158\uc744 \uc0ac\uc6a9\ud574\ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">#grep -i linux test2.txt<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">Linux&nbsp;is open&nbsp;source&nbsp;software<br>\n<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">linux\ub77c\ub294 \ubb38\uc790\ub97c \uac80\uc0c9\ud588\uc9c0\ub9cc -i \uc635\uc158\uc744 \uc0ac\uc6a9\ud558\uc600\uae30 \ub54c\ubb38\uc5d0 Linux \uac00 \ud3ec\ud568\ub41c<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">Linux&nbsp;is open&nbsp;source&nbsp;software&nbsp;\ub77c\ub294 \ud589\uc774 \ucd9c\ub825 \ub429\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<div><\/div>\n\n\n\n<p><span style=\"color: #000000;\"><br>\n\uac1c\uc778\uc801\uc73c\ub85c \ubcf4\ud1b5 grep \uba85\ub839\uc5b4\ub97c \uc544\ub798\uc640 \uac19\uc774 \ud2b9\uc815 \ubb38\uc11c\ub97c \ucd9c\ub825\ud558\uba74\uc11c \uc5f0\uacb0 \uba85\ub839\uc5b4\ub85c \uc8fc\uace0 \uc0ac\uc6a9\ud588\uc5c8\ub2e4.<\/span><\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><strong><span style=\"color: #000000;\">cat [\ud30c\uc77c\uba85] | grep [\ucc3e\uace0\uc790\ud558\ub294 \ubb38\uc790\uc5f4]<\/span><\/strong><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc774\ub7ec\uba74 \ud1b5\uc0c1 \uc544\ub798\uc640 \uac19\uc774 \ucd9c\ub825\ub41c\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">[\ucc3e\uace0\ud558\ub294 \ubb38\uc790\uc5f4\uc744 \ud3ec\ud568\ud558\ub294 \ub77c\uc778\uc758 \ubb38\uc790\uc5f4]<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&#8230;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uadf8\ub7f0\ub370 \ub2e4\ub978 \uc0ac\ub78c\ub4e4\uc758 \uc0ac\uc6a9\ubc95\uc744 \ubcf4\ub2c8 \ub0b4\uac00 \uc0ac\uc6a9\ud558\ub294 \uc0ac\uc6a9\ubc95\ubcf4\ub2e4 \ub354 \uc720\uc6a9\ud55c \uac83\uac19\uc544 \uc5ec\uae30 \uc815\ub9ac\ud574\ubcf8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\ud2b9\uc815 \ud3f4\ub354\ub0b4\uc5d0\uc11c<\/span><\/p>\n\n\n\n<p><strong><span style=\"color: #000000;\">grep -i [\ucc3e\uace0\uc790\ud558\ub294 \ubb38\uc790\uc5f4] [\ub514\ub809\ud1a0\ub9ac\uacbd\ub85c\/*]<\/span><\/strong><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc5ec\uae30\uc11c -i \uc635\uc158\uc740 \ub300\uc18c\ubb38\uc790 \uad6c\ubd84\uc744 \ubb34\uc2dc\ud558\ub294 \uba85\ub839\uc5b4\uc774\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\ub514\ub809\ud1a0\ub9ac \uacbd\ub85c\ub294 \uc9c0\uc815\ud558\uc9c0 \uc54a\uc73c\uba74 \ud574\ub2f9 \uacbd\ub85c\ub0b4\uc758 \ud30c\uc77c\ub4e4\ub9cc \uac80\uc0c9\ud55c\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">[\uac80\uc0c9\ub41c \ud30c\uc77c\uba85]:[\ucc3e\uace0\ud558\ub294 \ubb38\uc790\uc5f4\uc744 \ud3ec\ud568\ud558\ub294 \ub77c\uc778\uc758 \ubb38\uc790\uc5f4]<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&#8230;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc544\ub798\uc640 \uac19\uc774 \uc0ac\uc6a9\ud574\ub3c4 \uc720\uc0ac\ud55c \uac80\uc0c9 \uacb0\uacfc\ub97c \uc5bb\uc744 \uc218 \uc788\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><strong><span style=\"color: #000000;\">find . -type f -print | xargs grep [\ucc3e\uace0\uc790\ud558\ub294 \ubb38\uc790\uc5f4]<\/span><\/strong><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc704\uc640 \uac19\uc774 \ud558\uba74 \ud574\ub2f9 \uacbd\ub85c\uc640 \ud558\uc704 \uacbd\ub85c\ub0b4\uc758 \ud30c\uc77c\ub4e4\uc744 \uac80\uc0c9\ud558\uc5ec \ud574\ub2f9 \ubb38\uc790\uc5f4\uc774 \uc788\ub294 \ud30c\uc77c\uc744 \ubcf4\uc5ec\uc900\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">\uc544\ub9c8 find \uba85\ub839\uc5b4\ub54c\ubb38\uc5d0 \ud574\ub2f9 \uacbd\ub85c\ub0b4\uc758 \ubaa8\ub4e0 \ud558\uc704 \uacbd\ub85c\uc758 \ud30c\uc77c\uc744 \uac80\uc0c9\ud574\uc8fc\ub294 \uac83 \uac19\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"color: #000000;\">[\uac80\uc0c9\ub41c \ud30c\uc77c\uba85]:[\ucc3e\uace0\ud558\ub294 \ubb38\uc790\uc5f4\uc744 \ud3ec\ud568\ud558\ub294 \ub77c\uc778\uc758 \ubb38\uc790\uc5f4]<\/span><\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p>\ucc38\uc870:&nbsp;<a href=\"http:\/\/reebok.tistory.com\/entry\/grep-%EB%AA%85%EB%A0%B9%EC%96%B4-%EC%99%80-%ED%99%9C%EC%9A%A9\">http:\/\/reebok.tistory.com\/entry\/grep-%EB%AA%85%EB%A0%B9%EC%96%B4-%EC%99%80-%ED%99%9C%EC%9A%A9<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>grep(\uadf8\ub819)\uc740&nbsp;\uc720\ub2c9\uc2a4\ub97c \uc704\ud574 \ub9cc\ub4e4\uc5b4\uc9c4 \ud14d\uc2a4\ud2b8 \uac80\uc0c9 \uae30\ub2a5\uc744 \uac00\uc9c4 \uba85\ub839\uc5b4\uc774\ub2e4. \uadf8 \uc774\ub984\uc740&nbsp;\uc720\ub2c9\uc2a4&nbsp;ed\uc758 \uba85\ub839\uc5b4\ub85c \ube44\uc2b7\ud55c \uae30\ub2a5\uc744 \uc218\ud589\ud558\ub294&nbsp;g\/re\/p\uc5d0\uc11c \uc720\ub798\ub418\uc5c8\ub2e4.[3] grep\uc740 \uc5c4\ubc00\ud788 \ub9d0\ud558\uba74 \ub450\ubb38\uc790\uc5b4(\uba38\ub9ac\uae00\uc790\ub85c \ub41c \ub9d0)\uc740 \uc544\ub2c8\uc9c0\ub9cc&nbsp;global&nbsp;\/&nbsp;regular expression&nbsp;\/&nbsp;print\uc5d0\uc11c \uac01\uac01\uc758 \uba38\ub9bf\uae00\uc790\ub97c <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=1770\" title=\"grep \uba85\ub839\uc5b4\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1770","post","type-post","status-publish","format-standard","hentry","category-centos"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>grep \uba85\ub839\uc5b4 - AuctionPro<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.auctionpro.co.kr\/?p=1770\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"grep \uba85\ub839\uc5b4 - AuctionPro\" \/>\n<meta property=\"og:description\" content=\"grep(\uadf8\ub819)\uc740&nbsp;\uc720\ub2c9\uc2a4\ub97c \uc704\ud574 \ub9cc\ub4e4\uc5b4\uc9c4 \ud14d\uc2a4\ud2b8 \uac80\uc0c9 \uae30\ub2a5\uc744 \uac00\uc9c4 \uba85\ub839\uc5b4\uc774\ub2e4. \uadf8 \uc774\ub984\uc740&nbsp;\uc720\ub2c9\uc2a4&nbsp;ed\uc758 \uba85\ub839\uc5b4\ub85c \ube44\uc2b7\ud55c \uae30\ub2a5\uc744 \uc218\ud589\ud558\ub294&nbsp;g\/re\/p\uc5d0\uc11c \uc720\ub798\ub418\uc5c8\ub2e4.[3] grep\uc740 \uc5c4\ubc00\ud788 \ub9d0\ud558\uba74 \ub450\ubb38\uc790\uc5b4(\uba38\ub9ac\uae00\uc790\ub85c \ub41c \ub9d0)\uc740 \uc544\ub2c8\uc9c0\ub9cc&nbsp;global&nbsp;\/&nbsp;regular expression&nbsp;\/&nbsp;print\uc5d0\uc11c \uac01\uac01\uc758 \uba38\ub9bf\uae00\uc790\ub97c [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.auctionpro.co.kr\/?p=1770\" \/>\n<meta property=\"og:site_name\" content=\"AuctionPro\" \/>\n<meta property=\"article:published_time\" content=\"2013-01-09T02:21:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-20T02:29:52+00:00\" \/>\n<meta name=\"author\" content=\"golgol\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"golgol\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1770#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1770\"},\"author\":{\"name\":\"golgol\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#\\\/schema\\\/person\\\/d3dbae599b06cd55f5b14a3e2116f7a2\"},\"headline\":\"grep \uba85\ub839\uc5b4\",\"datePublished\":\"2013-01-09T02:21:15+00:00\",\"dateModified\":\"2026-02-20T02:29:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1770\"},\"wordCount\":218,\"commentCount\":0,\"articleSection\":[\"[OS]CentOS\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1770#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1770\",\"url\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1770\",\"name\":\"grep \uba85\ub839\uc5b4 - AuctionPro\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#website\"},\"datePublished\":\"2013-01-09T02:21:15+00:00\",\"dateModified\":\"2026-02-20T02:29:52+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#\\\/schema\\\/person\\\/d3dbae599b06cd55f5b14a3e2116f7a2\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1770#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1770\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1770#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"grep \uba85\ub839\uc5b4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#website\",\"url\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/\",\"name\":\"AuctionPro\",\"description\":\"\uc625\uc158\ud504\ub85c\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#\\\/schema\\\/person\\\/d3dbae599b06cd55f5b14a3e2116f7a2\",\"name\":\"golgol\",\"url\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?author=6\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"grep \uba85\ub839\uc5b4 - AuctionPro","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.auctionpro.co.kr\/?p=1770","og_locale":"ko_KR","og_type":"article","og_title":"grep \uba85\ub839\uc5b4 - AuctionPro","og_description":"grep(\uadf8\ub819)\uc740&nbsp;\uc720\ub2c9\uc2a4\ub97c \uc704\ud574 \ub9cc\ub4e4\uc5b4\uc9c4 \ud14d\uc2a4\ud2b8 \uac80\uc0c9 \uae30\ub2a5\uc744 \uac00\uc9c4 \uba85\ub839\uc5b4\uc774\ub2e4. \uadf8 \uc774\ub984\uc740&nbsp;\uc720\ub2c9\uc2a4&nbsp;ed\uc758 \uba85\ub839\uc5b4\ub85c \ube44\uc2b7\ud55c \uae30\ub2a5\uc744 \uc218\ud589\ud558\ub294&nbsp;g\/re\/p\uc5d0\uc11c \uc720\ub798\ub418\uc5c8\ub2e4.[3] grep\uc740 \uc5c4\ubc00\ud788 \ub9d0\ud558\uba74 \ub450\ubb38\uc790\uc5b4(\uba38\ub9ac\uae00\uc790\ub85c \ub41c \ub9d0)\uc740 \uc544\ub2c8\uc9c0\ub9cc&nbsp;global&nbsp;\/&nbsp;regular expression&nbsp;\/&nbsp;print\uc5d0\uc11c \uac01\uac01\uc758 \uba38\ub9bf\uae00\uc790\ub97c [...]","og_url":"https:\/\/www.auctionpro.co.kr\/?p=1770","og_site_name":"AuctionPro","article_published_time":"2013-01-09T02:21:15+00:00","article_modified_time":"2026-02-20T02:29:52+00:00","author":"golgol","twitter_card":"summary_large_image","twitter_misc":{"\uae00\uc4f4\uc774":"golgol","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.auctionpro.co.kr\/?p=1770#article","isPartOf":{"@id":"https:\/\/www.auctionpro.co.kr\/?p=1770"},"author":{"name":"golgol","@id":"https:\/\/www.auctionpro.co.kr\/#\/schema\/person\/d3dbae599b06cd55f5b14a3e2116f7a2"},"headline":"grep \uba85\ub839\uc5b4","datePublished":"2013-01-09T02:21:15+00:00","dateModified":"2026-02-20T02:29:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.auctionpro.co.kr\/?p=1770"},"wordCount":218,"commentCount":0,"articleSection":["[OS]CentOS"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.auctionpro.co.kr\/?p=1770#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.auctionpro.co.kr\/?p=1770","url":"https:\/\/www.auctionpro.co.kr\/?p=1770","name":"grep \uba85\ub839\uc5b4 - AuctionPro","isPartOf":{"@id":"https:\/\/www.auctionpro.co.kr\/#website"},"datePublished":"2013-01-09T02:21:15+00:00","dateModified":"2026-02-20T02:29:52+00:00","author":{"@id":"https:\/\/www.auctionpro.co.kr\/#\/schema\/person\/d3dbae599b06cd55f5b14a3e2116f7a2"},"breadcrumb":{"@id":"https:\/\/www.auctionpro.co.kr\/?p=1770#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.auctionpro.co.kr\/?p=1770"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.auctionpro.co.kr\/?p=1770#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/www.auctionpro.co.kr\/"},{"@type":"ListItem","position":2,"name":"grep \uba85\ub839\uc5b4"}]},{"@type":"WebSite","@id":"https:\/\/www.auctionpro.co.kr\/#website","url":"https:\/\/www.auctionpro.co.kr\/","name":"AuctionPro","description":"\uc625\uc158\ud504\ub85c","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.auctionpro.co.kr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/www.auctionpro.co.kr\/#\/schema\/person\/d3dbae599b06cd55f5b14a3e2116f7a2","name":"golgol","url":"https:\/\/www.auctionpro.co.kr\/?author=6"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1770"}],"version-history":[{"count":1,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1770\/revisions"}],"predecessor-version":[{"id":10041,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1770\/revisions\/10041"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}