
{"id":6421,"date":"2011-12-10T18:02:57","date_gmt":"2011-12-10T18:02:57","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=6421"},"modified":"2011-12-10T18:02:57","modified_gmt":"2011-12-10T18:02:57","slug":"grep-egrep-fgrep-rgrep-print-lines-matching-a-pattern","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2011\/12\/10\/grep-egrep-fgrep-rgrep-print-lines-matching-a-pattern\/","title":{"rendered":"grep  ( -c option )"},"content":{"rendered":"<h4><u>UNIX Command<\/u><\/h4>\n<pre>\n$grep -c pack  resume.txt\n0\n$grep -c Linux  resume.txt\n9\n$grep -c Lin  resume.txt\n9\n$grep -c Li  resume.txt\n9\n$grep -c L  resume.txt\n15\n$grep -c engineer  resume.txt\n2\n$grep -c 1976  resume.txt\n1\n$grep -c GNU  resume.txt\n5\n$\n\n<\/pre>\n<p><\/p>\n<h4><u> UNIX Explanation For (grep -c) <\/u><\/h4>\n<pre>\nSuppress normal output; instead print a count of matching lines for\neach input  file.  With the -v, --invert-match  option (see below),\ncount non-matching lines.  (-c is specified by POSIX.)\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>UNIX Command $grep -c pack resume.txt 0 $grep -c Linux resume.txt 9 $grep -c Lin resume.txt 9 $grep -c Li resume.txt 9 $grep -c L resume.txt 15 $grep -c engineer resume.txt 2 $grep -c 1976 resume.txt 1 $grep -c GNU resume.txt 5 $ UNIX Explanation For (grep -c) Suppress normal output; instead print a count &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2011\/12\/10\/grep-egrep-fgrep-rgrep-print-lines-matching-a-pattern\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;grep  ( -c option )&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/6421"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=6421"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/6421\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=6421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=6421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=6421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}