
{"id":1651,"date":"2010-06-09T19:02:00","date_gmt":"2010-06-09T13:32:00","guid":{"rendered":"http:\/\/www.jeffrin.in\/?p=1651"},"modified":"2010-06-09T19:02:00","modified_gmt":"2010-06-09T13:32:00","slug":"grep-x-exact-line-match-only","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/06\/09\/grep-x-exact-line-match-only\/","title":{"rendered":"grep &#8230; -x .. exact line match only"},"content":{"rendered":"<pre>\n$cat example.txt\nA for Apple.\nB for Baby.\nC for Cat.\nD for Donkey.\n$grep  A example.txt\nA for Apple.\n$grep -x A example.txt\n$grep -x A for Apple.  example.txt\ngrep: for: No such file or directory\ngrep: Apple.: No such file or directory\n$grep -x \"A for Apple.\"  example.txt\nA for Apple.\n$grep -x \"A for Apple\"  example.txt\n$\n<\/pre>\n<pre>\ngrep -x option\nSelect only those matches that exactly match the whole line.  (-x is  specified  by POSIX.)\n\nsource : debian grep manual.\n<\/pre>\n<pre>\n\n case 'x':\n        match_lines = 1;\n        break;\n\nsource : debian GNU grep.\n<\/pre>\n<pre>\n<p>Research Related Paper.<\/p>\n<p><a href=\"http:\/\/citeseerx.ist.psu.edu\/viewdoc\/download?doi=10.1.1.85.1663&amp;rep=rep1&amp;type=pdf\">http:\/\/citeseerx.ist.psu.edu\/viewdoc\/download?doi=10.1.1.85.1663&amp;rep=rep1&amp;type=pdf<br \/>\n<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>$cat example.txt A for Apple. B for Baby. C for Cat. D for Donkey. $grep A example.txt A for Apple. $grep -x A example.txt $grep -x A for Apple. example.txt grep: for: No such file or directory grep: Apple.: No such file or directory $grep -x &#8220;A for Apple.&#8221; example.txt A for Apple. $grep -x &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/06\/09\/grep-x-exact-line-match-only\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;grep &#8230; -x .. exact line match only&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[865],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/1651"}],"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=1651"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/1651\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=1651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=1651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=1651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}