{"id":1756,"date":"2018-10-26T13:34:15","date_gmt":"2018-10-26T13:34:15","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=1756"},"modified":"2018-10-27T03:53:01","modified_gmt":"2018-10-27T03:53:01","slug":"linux-today-how-to-use-grep-command-to-search-files-in-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/26\/linux-today-how-to-use-grep-command-to-search-files-in-linux\/","title":{"rendered":"Linux Today &#8211; How to Use Grep Command to Search Files in Linux"},"content":{"rendered":"<p>Oct 25, 2018, 10:00 (Other stories by <a href=\"https:\/\/www.linuxtoday.com\/author\/Linuxize\/\">Linuxize<\/a>)<\/p>\n<p>The grep command which stands for &#8216;global regular expression print&#8217; is one of the most powerful and commonly used commands in Linux. Grep searches one or more input files for lines that match a given pattern and writes each matching line to standard output. If no files are specified, grep reads from the standard input which is usually the output of another command. In this tutorial, we will show you how to use the grep command through practical examples and detailed explanations of the most common GNU grep options.<\/p>\n<p><a href=\"https:\/\/linuxize.com\/post\/how-to-use-grep-command-to-search-files-in-linux\/\">Complete Story<\/a><\/p>\n<p>Related Stories:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.linuxtoday.com\/developer\/2011081000841oshl\">Is Glark a Better Grep?<\/a>(Aug 10, 2011)<\/li>\n<li><a href=\"https:\/\/www.linuxtoday.com\/infrastructure\/2009031602235oshlsw\">Colorize grep output<\/a>(Mar 16, 2009)<\/li>\n<li><a href=\"https:\/\/www.linuxtoday.com\/infrastructure\/2010021800535oshlsw\">Regular Expressions In grep<\/a>(Feb 18, 2010)<\/li>\n<li><a href=\"https:\/\/www.linuxtoday.com\/infrastructure\/2010062902035oshlsw\">Grep command in Linux explained<\/a>(Jun 29, 2010)<\/li>\n<li><a href=\"https:\/\/www.linuxtoday.com\/developer\/1999090201010nwsm\">Grep the Web<\/a>(Sep 02, 1999)<\/li>\n<li><a href=\"https:\/\/www.linuxtoday.com\/it_management\/2011060900441osdtsv\">5 grep like commands<\/a>(Jun 09, 2011)<\/li>\n<li><a href=\"https:\/\/www.linuxtoday.com\/infrastructure\/2008071500135ossw\"> grep Is A Beautiful Tool<\/a>(Jul 15, 2008)<\/li>\n<li><a href=\"https:\/\/www.linuxtoday.com\/infrastructure\/2010020402535ossw\">Linux Newbie : Why grep almost never yields something productive<\/a>(Feb 04, 2010)<\/li>\n<\/ul>\n<p><a href=\"http:\/\/www.linuxtoday.com\/developer\/how-to-use-grep-command-to-search-files-in-linux-181024145534.html\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oct 25, 2018, 10:00 (Other stories by Linuxize) The grep command which stands for &#8216;global regular expression print&#8217; is one of the most powerful and commonly used commands in Linux. Grep searches one or more input files for lines that match a given pattern and writes each matching line to standard output. If no files &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/26\/linux-today-how-to-use-grep-command-to-search-files-in-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Linux Today &#8211; How to Use Grep Command to Search Files in Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1756","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=1756"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1756\/revisions"}],"predecessor-version":[{"id":1793,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1756\/revisions\/1793"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=1756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=1756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=1756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}