{"id":3971,"date":"2024-04-13T08:43:11","date_gmt":"2024-04-13T03:13:11","guid":{"rendered":"https:\/\/cthecosmos.com\/?p=3971"},"modified":"2024-04-13T08:43:11","modified_gmt":"2024-04-13T03:13:11","slug":"%f0%9d%91%ae%f0%9d%92%93%f0%9d%92%86%f0%9d%92%91-%f0%9d%92%88-%f0%9d%92%93%f0%9d%92%86-%f0%9d%92%91-%f0%9d%91%be%f0%9d%92%89%f0%9d%92%86%f0%9d%92%93%f0%9d%92%86-%f0%9d%91%bb%f0%9d%92%86%f0%9d%92%99","status":"publish","type":"post","link":"https:\/\/cthecosmos.com\/?p=3971","title":{"rendered":"\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 &#8211; \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89!"},"content":{"rendered":"\n<p class=\"has-black-color has-white-background-color has-text-color has-background has-link-color wp-elements-1 wp-block-paragraph\" style=\"font-size:17px;line-height:1.8\">We all use <strong>grep <\/strong>command when we want to search for patterns of text in any file(s).<br><br><strong>ED <\/strong>(Editor) is a text editor that was developed in the mid-1960s by <strong><em>Ken Thompson<\/em><\/strong> and other early pioneers of computing. It is one of the oldest text editors still in existence and has a long history with Unix-based systems. <br><br>The first versions of Unix used ED as the default text editor. To use ED, users interact with the editor by entering specific commands to perform various tasks, such as inserting, deleting, or searching for text. <br><br>For example, to add text, users would use the &#8220;a&#8221; command, followed by the text they want to insert, and then end the insertion with a dot on a new line.<br><br>In a quest to know who the authors of the &#8220;<em>Federalist: A Collection of Essays, written in Favour of the New Constitution<\/em>&#8221; one of the fundamental American documents that was published anonymously under the name &#8220;<strong><em>PHILO-PUBLUS<\/em><\/strong>&#8220;, Lee Edward McMahon wanted to figure out who wrote it. <br><br>It was around <strong>1 MB<\/strong> which was not possible to edit on ED editor. He wanted to search for an occurrence of a particular word in that book. He sent that to Ken Thompson hoping to get some help from him. Ken Thompson wrote a program overnight which is popularly now called <strong>GREP<\/strong>.<br><br>In ED editor, the command &#8216;<strong>g<\/strong>&#8216; indicates global and &#8216;<strong>p<\/strong>&#8216; indicates print. So, as per ED, globally search for a regular expression and print it. <br><br><strong><em>Global Regular Expression Print &#8211;&gt; g\/re\/p &#8211;&gt; GREP<\/em><\/strong>.<br><br>That&#8217;s how it began and grep is what it is now.<br><br><strong>Some examples of how to use grep<\/strong><br><br><strong><em>grep &#8220;someword&#8221; somefile.txt<\/em><\/strong><br>It prints out the statement where that &#8216;someword&#8217; occurs in &#8216;somefile&#8217;.<br><br><strong><em>grep -i &#8220;some&#8221; anotherfile.txt<\/em><\/strong><br>It ignores the case(Upper and lower) while searching and prints both some and Some.<br><br><strong><em>grep -r &#8220;searching&#8221; adirectory<\/em><\/strong><br>It recursively searches for &#8220;searching&#8221; in al files within &#8220;adirectory&#8221; directory and its subdirectories.<br><br><strong><em>grep -v &#8220;notthis&#8221; somefile.txt<\/em><\/strong><br>It inverts the match and displays lines that don&#8217;t contain the word &#8220;notthis&#8221;.<br><br><strong><em>grep -c &#8220;counting&#8221; somefile.txt<\/em><\/strong><br>It counts the numberof occurences of the word &#8220;counting&#8221; in the file and displays the count.<br><br><strong><em>grep &#8220;^this&#8221; someregfile.txt<\/em><\/strong><br>&#8216;^&#8217; in the above regex indicates the start of a line, so grep prints all the lines that start with &#8216;this&#8217;.<br><br>There are plenty more, these are just a few.<br><br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background has-link-color has-medium-font-size wp-elements-2 wp-block-paragraph\" style=\"background:linear-gradient(135deg,rgb(35,23,11) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)\">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><strong>An Article by: <\/strong>Yashwanth Naidu Tikkisetty<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The grep command is used to search for text patterns in files, with its origins in the development of the ED text editor by Ken Thompson. Seeking the authors of &#8220;Federalist&#8221; led Lee Edward McMahon to contact Thompson, resulting in the creation of grep. The post also provides examples of grep usage, showcasing its functionality.<\/p>\n<a href=\"https:\/\/cthecosmos.com\/?p=3971\" class=\"more-link\">Read More <span class=\"screen-reader-text\">\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 &#8211; \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89!<\/span><\/a>","protected":false},"author":120055267,"featured_media":3972,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":false,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[30181,35264203,769114260],"tags":[772321193,320746,18790084,34922710,50253905,1354040],"class_list":["post-3971","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-embedded-systems","category-linux-3","category-linuxlearnings","tag-embedded-systems","tag-grep","tag-grep-command","tag-linux-2","tag-man-command","tag-short-article","fallback-thumbnail"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"The grep command is used to search for text patterns in files, with its origins in the development of the ED text editor by Ken Thompson. Seeking the authors of &quot;Federalist&quot; led Lee Edward McMahon to contact Thompson, resulting in the creation of grep. The post also provides examples of grep usage, showcasing its functionality.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yashwanth Naidu Tikkisetty\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/cthecosmos.com\/?p=3971\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Yashwanth Naidu Tikkisetty - Embedded Systems | Space Blogger\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 \u2013 \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89! - Yashwanth Naidu Tikkisetty\" \/>\n\t\t<meta property=\"og:description\" content=\"The grep command is used to search for text patterns in files, with its origins in the development of the ED text editor by Ken Thompson. Seeking the authors of &quot;Federalist&quot; led Lee Edward McMahon to contact Thompson, resulting in the creation of grep. The post also provides examples of grep usage, showcasing its functionality.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/cthecosmos.com\/?p=3971\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1200\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-04-13T03:13:11+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-04-13T03:13:11+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 \u2013 \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89! - Yashwanth Naidu Tikkisetty\" \/>\n\t\t<meta name=\"twitter:description\" content=\"The grep command is used to search for text patterns in files, with its origins in the development of the ED text editor by Ken Thompson. Seeking the authors of &quot;Federalist&quot; led Lee Edward McMahon to contact Thompson, resulting in the creation of grep. The post also provides examples of grep usage, showcasing its functionality.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3971#blogposting\",\"name\":\"\\ud835\\udc6e\\ud835\\udc93\\ud835\\udc86\\ud835\\udc91 \\u2013 \\ud835\\udc88\\\/\\ud835\\udc93\\ud835\\udc86\\\/\\ud835\\udc91: \\ud835\\udc7e\\ud835\\udc89\\ud835\\udc86\\ud835\\udc93\\ud835\\udc86 \\ud835\\udc7b\\ud835\\udc86\\ud835\\udc99\\ud835\\udc95 \\ud835\\udc74\\ud835\\udc86\\ud835\\udc86\\ud835\\udc95\\ud835\\udc94 \\ud835\\udc70\\ud835\\udc95\\ud835\\udc94 \\ud835\\udc77\\ud835\\udc86\\ud835\\udc93\\ud835\\udc87\\ud835\\udc86\\ud835\\udc84\\ud835\\udc95 \\ud835\\udc74\\ud835\\udc82\\ud835\\udc95\\ud835\\udc84\\ud835\\udc89! - Yashwanth Naidu Tikkisetty\",\"headline\":\"\\ud835\\udc6e\\ud835\\udc93\\ud835\\udc86\\ud835\\udc91 &#8211; \\ud835\\udc88\\\/\\ud835\\udc93\\ud835\\udc86\\\/\\ud835\\udc91: \\ud835\\udc7e\\ud835\\udc89\\ud835\\udc86\\ud835\\udc93\\ud835\\udc86 \\ud835\\udc7b\\ud835\\udc86\\ud835\\udc99\\ud835\\udc95 \\ud835\\udc74\\ud835\\udc86\\ud835\\udc86\\ud835\\udc95\\ud835\\udc94 \\ud835\\udc70\\ud835\\udc95\\ud835\\udc94 \\ud835\\udc77\\ud835\\udc86\\ud835\\udc93\\ud835\\udc87\\ud835\\udc86\\ud835\\udc84\\ud835\\udc95 \\ud835\\udc74\\ud835\\udc82\\ud835\\udc95\\ud835\\udc84\\ud835\\udc89!\",\"author\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/cthecosmos.com\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/grep.png?fit=1231%2C871&ssl=1\",\"width\":1231,\"height\":871},\"datePublished\":\"2024-04-13T08:43:11+05:30\",\"dateModified\":\"2024-04-13T08:43:11+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3971#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3971#webpage\"},\"articleSection\":\"Embedded Systems, linux, linuxlearnings, Embedded Systems, grep, grep command, linux, man command, SHORT ARTICLE\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3971#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cthecosmos.com\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=30181#listItem\",\"name\":\"Embedded Systems\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=30181#listItem\",\"position\":2,\"name\":\"Embedded Systems\",\"item\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=30181\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3971#listItem\",\"name\":\"\\ud835\\udc6e\\ud835\\udc93\\ud835\\udc86\\ud835\\udc91 &#8211; \\ud835\\udc88\\\/\\ud835\\udc93\\ud835\\udc86\\\/\\ud835\\udc91: \\ud835\\udc7e\\ud835\\udc89\\ud835\\udc86\\ud835\\udc93\\ud835\\udc86 \\ud835\\udc7b\\ud835\\udc86\\ud835\\udc99\\ud835\\udc95 \\ud835\\udc74\\ud835\\udc86\\ud835\\udc86\\ud835\\udc95\\ud835\\udc94 \\ud835\\udc70\\ud835\\udc95\\ud835\\udc94 \\ud835\\udc77\\ud835\\udc86\\ud835\\udc93\\ud835\\udc87\\ud835\\udc86\\ud835\\udc84\\ud835\\udc95 \\ud835\\udc74\\ud835\\udc82\\ud835\\udc95\\ud835\\udc84\\ud835\\udc89!\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3971#listItem\",\"position\":3,\"name\":\"\\ud835\\udc6e\\ud835\\udc93\\ud835\\udc86\\ud835\\udc91 &#8211; \\ud835\\udc88\\\/\\ud835\\udc93\\ud835\\udc86\\\/\\ud835\\udc91: \\ud835\\udc7e\\ud835\\udc89\\ud835\\udc86\\ud835\\udc93\\ud835\\udc86 \\ud835\\udc7b\\ud835\\udc86\\ud835\\udc99\\ud835\\udc95 \\ud835\\udc74\\ud835\\udc86\\ud835\\udc86\\ud835\\udc95\\ud835\\udc94 \\ud835\\udc70\\ud835\\udc95\\ud835\\udc94 \\ud835\\udc77\\ud835\\udc86\\ud835\\udc93\\ud835\\udc87\\ud835\\udc86\\ud835\\udc84\\ud835\\udc95 \\ud835\\udc74\\ud835\\udc82\\ud835\\udc95\\ud835\\udc84\\ud835\\udc89!\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=30181#listItem\",\"name\":\"Embedded Systems\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#person\",\"name\":\"Yashwanth Naidu Tikkisetty\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3971#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a02d9f38e4c924587b544c74f6d5de0c8469b6a5c684622f1aa4ea2ba65b17d8?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Yashwanth Naidu Tikkisetty\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267#author\",\"url\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267\",\"name\":\"Yashwanth Naidu Tikkisetty\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3971#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a02d9f38e4c924587b544c74f6d5de0c8469b6a5c684622f1aa4ea2ba65b17d8?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Yashwanth Naidu Tikkisetty\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3971#webpage\",\"url\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3971\",\"name\":\"\\ud835\\udc6e\\ud835\\udc93\\ud835\\udc86\\ud835\\udc91 \\u2013 \\ud835\\udc88\\\/\\ud835\\udc93\\ud835\\udc86\\\/\\ud835\\udc91: \\ud835\\udc7e\\ud835\\udc89\\ud835\\udc86\\ud835\\udc93\\ud835\\udc86 \\ud835\\udc7b\\ud835\\udc86\\ud835\\udc99\\ud835\\udc95 \\ud835\\udc74\\ud835\\udc86\\ud835\\udc86\\ud835\\udc95\\ud835\\udc94 \\ud835\\udc70\\ud835\\udc95\\ud835\\udc94 \\ud835\\udc77\\ud835\\udc86\\ud835\\udc93\\ud835\\udc87\\ud835\\udc86\\ud835\\udc84\\ud835\\udc95 \\ud835\\udc74\\ud835\\udc82\\ud835\\udc95\\ud835\\udc84\\ud835\\udc89! - Yashwanth Naidu Tikkisetty\",\"description\":\"The grep command is used to search for text patterns in files, with its origins in the development of the ED text editor by Ken Thompson. Seeking the authors of \\\"Federalist\\\" led Lee Edward McMahon to contact Thompson, resulting in the creation of grep. The post also provides examples of grep usage, showcasing its functionality.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3971#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/cthecosmos.com\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/grep.png?fit=1231%2C871&ssl=1\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3971\\\/#mainImage\",\"width\":1231,\"height\":871},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=3971#mainImage\"},\"datePublished\":\"2024-04-13T08:43:11+05:30\",\"dateModified\":\"2024-04-13T08:43:11+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#website\",\"url\":\"https:\\\/\\\/cthecosmos.com\\\/\",\"name\":\"Yashwanth Naidu Tikkisetty\",\"description\":\"Embedded Systems | Space Blogger\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 \u2013 \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89! - Yashwanth Naidu Tikkisetty","description":"The grep command is used to search for text patterns in files, with its origins in the development of the ED text editor by Ken Thompson. Seeking the authors of \"Federalist\" led Lee Edward McMahon to contact Thompson, resulting in the creation of grep. The post also provides examples of grep usage, showcasing its functionality.","canonical_url":"https:\/\/cthecosmos.com\/?p=3971","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/cthecosmos.com\/?p=3971#blogposting","name":"\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 \u2013 \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89! - Yashwanth Naidu Tikkisetty","headline":"\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 &#8211; \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89!","author":{"@id":"https:\/\/cthecosmos.com\/?author=120055267#author"},"publisher":{"@id":"https:\/\/cthecosmos.com\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/grep.png?fit=1231%2C871&ssl=1","width":1231,"height":871},"datePublished":"2024-04-13T08:43:11+05:30","dateModified":"2024-04-13T08:43:11+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/cthecosmos.com\/?p=3971#webpage"},"isPartOf":{"@id":"https:\/\/cthecosmos.com\/?p=3971#webpage"},"articleSection":"Embedded Systems, linux, linuxlearnings, Embedded Systems, grep, grep command, linux, man command, SHORT ARTICLE"},{"@type":"BreadcrumbList","@id":"https:\/\/cthecosmos.com\/?p=3971#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/#listItem","position":1,"name":"Home","item":"https:\/\/cthecosmos.com\/","nextItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?cat=30181#listItem","name":"Embedded Systems"}},{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?cat=30181#listItem","position":2,"name":"Embedded Systems","item":"https:\/\/cthecosmos.com\/?cat=30181","nextItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?p=3971#listItem","name":"\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 &#8211; \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89!"},"previousItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?p=3971#listItem","position":3,"name":"\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 &#8211; \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89!","previousItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?cat=30181#listItem","name":"Embedded Systems"}}]},{"@type":"Person","@id":"https:\/\/cthecosmos.com\/#person","name":"Yashwanth Naidu Tikkisetty","image":{"@type":"ImageObject","@id":"https:\/\/cthecosmos.com\/?p=3971#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/a02d9f38e4c924587b544c74f6d5de0c8469b6a5c684622f1aa4ea2ba65b17d8?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Yashwanth Naidu Tikkisetty"}},{"@type":"Person","@id":"https:\/\/cthecosmos.com\/?author=120055267#author","url":"https:\/\/cthecosmos.com\/?author=120055267","name":"Yashwanth Naidu Tikkisetty","image":{"@type":"ImageObject","@id":"https:\/\/cthecosmos.com\/?p=3971#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/a02d9f38e4c924587b544c74f6d5de0c8469b6a5c684622f1aa4ea2ba65b17d8?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Yashwanth Naidu Tikkisetty"}},{"@type":"WebPage","@id":"https:\/\/cthecosmos.com\/?p=3971#webpage","url":"https:\/\/cthecosmos.com\/?p=3971","name":"\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 \u2013 \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89! - Yashwanth Naidu Tikkisetty","description":"The grep command is used to search for text patterns in files, with its origins in the development of the ED text editor by Ken Thompson. Seeking the authors of \"Federalist\" led Lee Edward McMahon to contact Thompson, resulting in the creation of grep. The post also provides examples of grep usage, showcasing its functionality.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/cthecosmos.com\/#website"},"breadcrumb":{"@id":"https:\/\/cthecosmos.com\/?p=3971#breadcrumblist"},"author":{"@id":"https:\/\/cthecosmos.com\/?author=120055267#author"},"creator":{"@id":"https:\/\/cthecosmos.com\/?author=120055267#author"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/grep.png?fit=1231%2C871&ssl=1","@id":"https:\/\/cthecosmos.com\/?p=3971\/#mainImage","width":1231,"height":871},"primaryImageOfPage":{"@id":"https:\/\/cthecosmos.com\/?p=3971#mainImage"},"datePublished":"2024-04-13T08:43:11+05:30","dateModified":"2024-04-13T08:43:11+05:30"},{"@type":"WebSite","@id":"https:\/\/cthecosmos.com\/#website","url":"https:\/\/cthecosmos.com\/","name":"Yashwanth Naidu Tikkisetty","description":"Embedded Systems | Space Blogger","inLanguage":"en-US","publisher":{"@id":"https:\/\/cthecosmos.com\/#person"}}]},"og:locale":"en_US","og:site_name":"Yashwanth Naidu Tikkisetty - Embedded Systems | Space Blogger","og:type":"article","og:title":"\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 \u2013 \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89! - Yashwanth Naidu Tikkisetty","og:description":"The grep command is used to search for text patterns in files, with its origins in the development of the ED text editor by Ken Thompson. Seeking the authors of &quot;Federalist&quot; led Lee Edward McMahon to contact Thompson, resulting in the creation of grep. The post also provides examples of grep usage, showcasing its functionality.","og:url":"https:\/\/cthecosmos.com\/?p=3971","og:image":"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png","og:image:secure_url":"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png","og:image:width":1200,"og:image:height":1200,"article:published_time":"2024-04-13T03:13:11+00:00","article:modified_time":"2024-04-13T03:13:11+00:00","twitter:card":"summary_large_image","twitter:title":"\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 \u2013 \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89! - Yashwanth Naidu Tikkisetty","twitter:description":"The grep command is used to search for text patterns in files, with its origins in the development of the ED text editor by Ken Thompson. Seeking the authors of &quot;Federalist&quot; led Lee Edward McMahon to contact Thompson, resulting in the creation of grep. The post also provides examples of grep usage, showcasing its functionality.","twitter:image":"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png"},"aioseo_meta_data":{"post_id":"3971","title":null,"description":null,"keywords":null,"keyphrases":null,"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":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"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":[]},"schema_type":"default","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":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2025-08-31 20:19:38","updated":"2025-08-31 20:19:38","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/cthecosmos.com\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/cthecosmos.com\/?cat=30181\" title=\"Embedded Systems\">Embedded Systems<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 \u2013 \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89!\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/cthecosmos.com\/"},{"label":"Embedded Systems","link":"https:\/\/cthecosmos.com\/?cat=30181"},{"label":"\ud835\udc6e\ud835\udc93\ud835\udc86\ud835\udc91 &#8211; \ud835\udc88\/\ud835\udc93\ud835\udc86\/\ud835\udc91: \ud835\udc7e\ud835\udc89\ud835\udc86\ud835\udc93\ud835\udc86 \ud835\udc7b\ud835\udc86\ud835\udc99\ud835\udc95 \ud835\udc74\ud835\udc86\ud835\udc86\ud835\udc95\ud835\udc94 \ud835\udc70\ud835\udc95\ud835\udc94 \ud835\udc77\ud835\udc86\ud835\udc93\ud835\udc87\ud835\udc86\ud835\udc84\ud835\udc95 \ud835\udc74\ud835\udc82\ud835\udc95\ud835\udc84\ud835\udc89!","link":"https:\/\/cthecosmos.com\/?p=3971"}],"jetpack_publicize_connections":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8CiEf-123","jetpack-related-posts":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/grep.png?fit=1231%2C871&ssl=1","_links":{"self":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/3971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/users\/120055267"}],"replies":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3971"}],"version-history":[{"count":5,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/3971\/revisions"}],"predecessor-version":[{"id":3977,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/3971\/revisions\/3977"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/media\/3972"}],"wp:attachment":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}