{"id":551,"date":"2000-05-27T19:42:41","date_gmt":"2000-05-27T10:42:41","guid":{"rendered":"http:\/\/terzeron.com\/?p=551"},"modified":"2000-05-27T19:42:41","modified_gmt":"2000-05-27T10:42:41","slug":"text-processing-%eb%b9%84%ec%96%b4%ec%9e%88%eb%8a%94-%ed%96%89-%ec%82%ad%ec%a0%9c%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/terzeron.com\/?p=551","title":{"rendered":"[Text Processing] \ube44\uc5b4\uc788\ub294 \ud589 \uc0ad\uc81c\ud558\uae30"},"content":{"rendered":"<p>[ CnUnix ] in KIDS<br \/>\n\uae00 \uc4f4 \uc774(By): taesan (\ud0dc\uc0b0)<br \/>\n\ub0a0 \uc9dc (Date): 2000\ub144 5\uc6d4 27\uc77c \ud1a0\uc694\uc77c \uc624\ud6c4 06\uc2dc 03\ubd84 18\ucd08<br \/>\n\uc81c \ubaa9(Title): [\uc9c8\ubb38] vi or sed\uc5d0\uc11c \ube48\ub77c\uc778 \uc5c6\uc560\uae30.<\/p>\n<p>\uc81c\ubaa9\ucc98\ub7fc \ube48\ub77c\uc778\ub9cc \uc5c6\uc568\ub824\uba74 \uc5b4\ub5bb\uac8c \ud574\uc57c\ud558\uc8e0?<\/p>\n<p>[ CnUnix ] in KIDS<br \/>\n\uae00 \uc4f4 \uc774(By): terzeron (microkid)<br \/>\n\ub0a0 \uc9dc (Date): 2000\ub144 5\uc6d4 27\uc77c \ud1a0\uc694\uc77c \uc624\ud6c4 07\uc2dc 42\ubd84 42\ucd08<br \/>\n\uc81c \ubaa9(Title): Re: [\uc9c8\ubb38] vi or sed\uc5d0\uc11c \ube48\ub77c\uc778 \uc5c6\uc560\uae30.<\/p>\n<p>\uc74c, man sed\ub97c \uc880 \ud574\ubcf4\uc168\uc73c\uba74 \uc88b\uc558\uc744 \ud150\ub370 \ub9d0\uc774\uc8e0&#8230;<\/p>\n<pre class=\"brush: xml\">sed -n '\n\/.\/ p\n\/^$\/ d\n'\n<\/pre>\n<p>\ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<p>\ubb3c\ub860 \uc774\uac74 \ub9e4\ub274\uc5bc\uc5d0\ub3c4 \ub098\uc635\ub2c8\ub2e4. (from Solaris)<\/p>\n<blockquote><p>This sed script simulates the BSD cat -s command, squeezing<br \/>\nexcess blank lines from standard input.<br \/>\nsed -n &#8216;<br \/>\n# Write non-empty lines.<br \/>\n\/.\/ {<br \/>\np<br \/>\nd<br \/>\n}<br \/>\n# Write a single empty line, then look for more empty lines.<br \/>\n\/^$\/ p<br \/>\n# Get next line, discard the held <newline> (empty line),<br \/>\n# and look for more empty lines.<br \/>\n:Empty<br \/>\n\/^$\/ {<br \/>\nN<br \/>\ns\/.\/\/<br \/>\nb Empty<br \/>\n}<br \/>\n# Write the non-empty line before going back to search<br \/>\n# for the first in a set of empty lines.<br \/>\np<br \/>\n&#8216;<\/p><\/blockquote>\n<div class=\"fb-background-color\">\n\t\t\t  <div \n\t\t\t  \tclass = \"fb-comments\" \n\t\t\t  \tdata-href = \"https:\/\/terzeron.com\/?p=551\"\n\t\t\t  \tdata-numposts = \"100\"\n\t\t\t  \tdata-lazy = \"true\"\n\t\t\t\tdata-colorscheme = \"light\"\n\t\t\t\tdata-order-by = \"time\"\n\t\t\t\tdata-mobile=true>\n\t\t\t  <\/div><\/div>\n\t\t  <style>\n\t\t    .fb-background-color {\n\t\t\t\tbackground: #ffffff !important;\n\t\t\t}\n\t\t\t.fb_iframe_widget_fluid_desktop iframe {\n\t\t\t    width: 100% !important;\n\t\t\t}\n\t\t  <\/style>\n\t\t  ","protected":false},"excerpt":{"rendered":"<p>[ CnUnix ] in KIDS \uae00 \uc4f4 \uc774(By): taesan (\ud0dc\uc0b0) \ub0a0 \uc9dc (Date): 2000\ub144 5\uc6d4 27\uc77c \ud1a0\uc694\uc77c \uc624\ud6c4 06\uc2dc 03\ubd84 18\ucd08 \uc81c \ubaa9(Title): [\uc9c8\ubb38] vi or sed\uc5d0\uc11c \ube48\ub77c\uc778 \uc5c6\uc560\uae30. \uc81c\ubaa9\ucc98\ub7fc \ube48\ub77c\uc778\ub9cc \uc5c6\uc568\ub824\uba74 \uc5b4\ub5bb\uac8c \ud574\uc57c\ud558\uc8e0? [ CnUnix ] in KIDS \uae00 &hellip; <a href=\"https:\/\/terzeron.com\/?p=551\">\uacc4\uc18d \uc77d\uae30 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[13,9],"tags":[],"class_list":["post-551","post","type-post","status-publish","format-standard","hentry","category-programming","category-9"],"_links":{"self":[{"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/posts\/551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/terzeron.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=551"}],"version-history":[{"count":0,"href":"https:\/\/terzeron.com\/index.php?rest_route=\/wp\/v2\/posts\/551\/revisions"}],"wp:attachment":[{"href":"https:\/\/terzeron.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/terzeron.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/terzeron.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}