{"id":629,"date":"2012-02-29T04:55:23","date_gmt":"2012-02-29T09:55:23","guid":{"rendered":"https:\/\/www.bodhost.com\/blog\/?p=629"},"modified":"2026-02-26T13:59:06","modified_gmt":"2026-02-26T13:59:06","slug":"uses-of-grep-command-in-unix-and-linux-server","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/","title":{"rendered":"Uses Of Grep Command In Unix And Linux Servers"},"content":{"rendered":"\r\n<h3><strong>Uses Of Grep Command In Unix And Linux Servers<\/strong><\/h3>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The name, &#8220;grep&#8221; is indicative of the operation which this command performs. It is executed using the Unix\/Linux text editor ed: <em>g\/re\/p<\/em><\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\">* grep Command Syntax<\/h4>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"><strong>grep<\/strong>'word' filename\r\n<strong>grep<\/strong>'string1 string2'  filename\r\n<strong>cat<\/strong> otherfile | <strong>grep<\/strong>'something'\r\n<strong>command<\/strong> | <strong>grep<\/strong>'something'\r\n<strong>command<\/strong> option1 | <strong>grep<\/strong>'data'\r\n<strong>grep<\/strong> --color 'data' fileName<\/pre>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>* Way To Search File With grep Command :<\/strong><\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Search \/etc\/passwd for boo user:<br \/><code>$ grep boo \/etc\/passwd<\/code><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Users can force grep to ignore word case. Such as, match boo, Boo, BOO and another combination with -i option:<br \/><code>$ grep -i \"boo\" \/etc\/passwd<\/code><\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\">* Utilize grep Recursively<\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">User can search recursively. Such as, read all files under each directory for a string &#8220;192.168.2.6&#8221;<br \/><code>$ grep -r \"192.168.2.6\" \/etc\/<\/code><\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>* Way To Search Words With grep Command :<\/strong><\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">When the user searches for boo, grep will match fooboo, boo123, etc. Grep can be made to select only the lines which contain matching whole words such as only the word boo.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><code>$ grep -w \"boo\" \/path\/to\/file<\/code><\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>* Way To Search Two Different Words with grep command :<\/strong><\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">use egrep as follows:<br \/><code>$ egrep -w 'word1|word2' \/path\/to\/file<\/code><\/p>\r\n\r\n\r\n\r\n<h4><strong>*Way To Count Lines Content Similar Words With grep Command:<\/strong><\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Users can get the number of times which the pattern has been matched for every file with -c (count) option:<br \/><code>$ grep -c 'word' \/path\/to\/file<\/code><br \/>Also keep in mind that the user can utilize -n option, which causes grep to precede every line of output with the number of the line in the text file from which it was obtained:<br \/><code>$ grep -n 'word' \/path\/to\/file<\/code><\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>* Grep Invert Match<\/strong><\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The -v option is used to print inverts of the match; meaning that it will return only those lines that do not contain the given word. For example, print all lines that do not contain the word bar<br \/><code>$ grep -v bar \/path\/to\/file<\/code><\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>* grep Command With Pipes<\/strong><\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">grep command is also used with pipes. As follows :<br \/><code># dmesg | egrep '(s|h)d[a-z]'<\/code><br \/>Display cpu model name:<br \/># cat \/proc\/cpuinfo | grep -i &#8216;Model&#8217;<br \/>Users can use the above command without a shell pipe, like below :<br \/><code># grep -i 'Model' \/proc\/cpuinfo<\/code><\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>* Way to list out the name of the matching files :<\/strong><\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use the -l option to list file names whose contents mention main():<br \/><code>$ grep -l 'main' *.c<\/code><br \/>Users can also force grep to display output in colors:<br \/><code>$ grep --color vivek \/etc\/passwd<\/code><\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Uses Of Grep Command In Unix And Linux Servers The name, &#8220;grep&#8221; is indicative of the operation which this command performs. It is executed using the Unix\/Linux text editor ed:&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,149],"tags":[154,77],"class_list":["post-629","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","category-linux","tag-grep-command","tag-linux-server"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Unix\/Linux Grep Command: Effortlessly search and filter text files, streamlining data analysis and management tasks.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Admin1\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"bodHOST | Web Hosting - Tips &amp; Tricks\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Uses Of Grep Command In Unix And Linux Servers | bodHOST\" \/>\n\t\t<meta property=\"og:description\" content=\"Unix\/Linux Grep Command: Effortlessly search and filter text files, streamlining data analysis and management tasks.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2012-02-29T09:55:23+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-02-26T13:59:06+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Uses Of Grep Command In Unix And Linux Servers | bodHOST\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Unix\/Linux Grep Command: Effortlessly search and filter text files, streamlining data analysis and management tasks.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-grep-command-in-unix-and-linux-server\\\/#article\",\"name\":\"Uses Of Grep Command In Unix And Linux Servers | bodHOST\",\"headline\":\"Uses Of Grep Command In Unix And Linux Servers\",\"author\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/author\\\/admin1\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/cropped-Profile-Pic.png\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/#articleImage\",\"width\":96,\"height\":96,\"caption\":\"bodHOST\"},\"datePublished\":\"2012-02-29T04:55:23+00:00\",\"dateModified\":\"2026-02-26T13:59:06+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-grep-command-in-unix-and-linux-server\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-grep-command-in-unix-and-linux-server\\\/#webpage\"},\"articleSection\":\"Dedicated Servers, Linux, grep Command, Linux Server\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-grep-command-in-unix-and-linux-server\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/category\\\/dedicated-servers\\\/#listItem\",\"name\":\"Dedicated Servers\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/category\\\/dedicated-servers\\\/#listItem\",\"position\":2,\"name\":\"Dedicated Servers\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/category\\\/dedicated-servers\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-grep-command-in-unix-and-linux-server\\\/#listItem\",\"name\":\"Uses Of Grep Command In Unix And Linux Servers\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-grep-command-in-unix-and-linux-server\\\/#listItem\",\"position\":3,\"name\":\"Uses Of Grep Command In Unix And Linux Servers\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/category\\\/dedicated-servers\\\/#listItem\",\"name\":\"Dedicated Servers\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/#organization\",\"name\":\"bodHOST\",\"description\":\"Web Hosting - Tips & Tricks\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/cropped-Profile-Pic.png\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-grep-command-in-unix-and-linux-server\\\/#organizationLogo\",\"width\":96,\"height\":96,\"caption\":\"bodHOST\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-grep-command-in-unix-and-linux-server\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/author\\\/admin1\\\/#author\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/author\\\/admin1\\\/\",\"name\":\"Admin1\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-grep-command-in-unix-and-linux-server\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cd7e35fa8b64889a49e442de56b8ca06e2b3916e7deb2c547281a07b793043b6?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Admin1\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-grep-command-in-unix-and-linux-server\\\/#webpage\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-grep-command-in-unix-and-linux-server\\\/\",\"name\":\"Uses Of Grep Command In Unix And Linux Servers | bodHOST\",\"description\":\"Unix\\\/Linux Grep Command: Effortlessly search and filter text files, streamlining data analysis and management tasks.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-grep-command-in-unix-and-linux-server\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/author\\\/admin1\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/author\\\/admin1\\\/#author\"},\"datePublished\":\"2012-02-29T04:55:23+00:00\",\"dateModified\":\"2026-02-26T13:59:06+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/\",\"name\":\"bodHOST\",\"description\":\"Web Hosting - Tips & Tricks\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Uses Of Grep Command In Unix And Linux Servers | bodHOST","description":"Unix\/Linux Grep Command: Effortlessly search and filter text files, streamlining data analysis and management tasks.","canonical_url":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/#article","name":"Uses Of Grep Command In Unix And Linux Servers | bodHOST","headline":"Uses Of Grep Command In Unix And Linux Servers","author":{"@id":"https:\/\/www.bodhost.com\/blog\/author\/admin1\/#author"},"publisher":{"@id":"https:\/\/www.bodhost.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png","@id":"https:\/\/www.bodhost.com\/blog\/#articleImage","width":96,"height":96,"caption":"bodHOST"},"datePublished":"2012-02-29T04:55:23+00:00","dateModified":"2026-02-26T13:59:06+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/#webpage"},"isPartOf":{"@id":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/#webpage"},"articleSection":"Dedicated Servers, Linux, grep Command, Linux Server"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.bodhost.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog\/category\/dedicated-servers\/#listItem","name":"Dedicated Servers"}},{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog\/category\/dedicated-servers\/#listItem","position":2,"name":"Dedicated Servers","item":"https:\/\/www.bodhost.com\/blog\/category\/dedicated-servers\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/#listItem","name":"Uses Of Grep Command In Unix And Linux Servers"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/#listItem","position":3,"name":"Uses Of Grep Command In Unix And Linux Servers","previousItem":{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog\/category\/dedicated-servers\/#listItem","name":"Dedicated Servers"}}]},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/blog\/#organization","name":"bodHOST","description":"Web Hosting - Tips & Tricks","url":"https:\/\/www.bodhost.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/#organizationLogo","width":96,"height":96,"caption":"bodHOST"},"image":{"@id":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/blog\/author\/admin1\/#author","url":"https:\/\/www.bodhost.com\/blog\/author\/admin1\/","name":"Admin1","image":{"@type":"ImageObject","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/cd7e35fa8b64889a49e442de56b8ca06e2b3916e7deb2c547281a07b793043b6?s=96&d=mm&r=g","width":96,"height":96,"caption":"Admin1"}},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/#webpage","url":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/","name":"Uses Of Grep Command In Unix And Linux Servers | bodHOST","description":"Unix\/Linux Grep Command: Effortlessly search and filter text files, streamlining data analysis and management tasks.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.bodhost.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/#breadcrumblist"},"author":{"@id":"https:\/\/www.bodhost.com\/blog\/author\/admin1\/#author"},"creator":{"@id":"https:\/\/www.bodhost.com\/blog\/author\/admin1\/#author"},"datePublished":"2012-02-29T04:55:23+00:00","dateModified":"2026-02-26T13:59:06+00:00"},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/blog\/#website","url":"https:\/\/www.bodhost.com\/blog\/","name":"bodHOST","description":"Web Hosting - Tips & Tricks","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.bodhost.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"bodHOST | Web Hosting - Tips &amp; Tricks","og:type":"article","og:title":"Uses Of Grep Command In Unix And Linux Servers | bodHOST","og:description":"Unix\/Linux Grep Command: Effortlessly search and filter text files, streamlining data analysis and management tasks.","og:url":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/","og:image":"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png","og:image:secure_url":"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png","article:published_time":"2012-02-29T09:55:23+00:00","article:modified_time":"2026-02-26T13:59:06+00:00","twitter:card":"summary","twitter:title":"Uses Of Grep Command In Unix And Linux Servers | bodHOST","twitter:description":"Unix\/Linux Grep Command: Effortlessly search and filter text files, streamlining data analysis and management tasks.","twitter:image":"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png"},"aioseo_meta_data":{"post_id":"629","title":null,"description":"Unix\/Linux Grep Command: Effortlessly search and filter text files, streamlining data analysis and management tasks.","keywords":[],"keyphrases":{"focus":{"keyphrase":"Grep ","score":100,"analysis":{"keyphraseInTitle":{"score":9,"maxScore":9,"error":0},"keyphraseInDescription":{"score":9,"maxScore":9,"error":0},"keyphraseLength":{"score":9,"maxScore":9,"error":0,"length":1},"keyphraseInURL":{"score":5,"maxScore":5,"error":0},"keyphraseInIntroduction":{"score":9,"maxScore":9,"error":0},"keyphraseInSubHeadings":{"score":9,"maxScore":9,"error":0},"keyphraseInImageAlt":[]}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-05-18 14:32:18","updated":"2026-02-27 09:32:15","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.bodhost.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.bodhost.com\/blog\/category\/dedicated-servers\/\" title=\"Dedicated Servers\">Dedicated Servers<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tUses Of Grep Command In Unix And Linux Servers\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.bodhost.com\/blog"},{"label":"Dedicated Servers","link":"https:\/\/www.bodhost.com\/blog\/category\/dedicated-servers\/"},{"label":"Uses Of Grep Command In Unix And Linux Servers","link":"https:\/\/www.bodhost.com\/blog\/uses-of-grep-command-in-unix-and-linux-server\/"}],"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/comments?post=629"}],"version-history":[{"count":12,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/629\/revisions"}],"predecessor-version":[{"id":5624,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/629\/revisions\/5624"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/media?parent=629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/categories?post=629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/tags?post=629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}