{"id":10039,"date":"2006-04-07T23:17:47","date_gmt":"2006-04-07T20:17:47","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/2006\/04\/07\/gnu-grep-can-be-colorful\/"},"modified":"2006-04-07T23:17:47","modified_gmt":"2006-04-07T20:17:47","slug":"gnu-grep-can-be-colorful","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2006\/04\/07\/gnu-grep-can-be-colorful\/","title":{"rendered":"GNU grep can be colorful"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>Yet another of those tiny things that I wish I discovered a billion years ago &#8211; GNU <code>grep<\/code> supports color.\u00c2\u00a0 Yup, that&#8217;s right.\u00c2\u00a0 You can actually have your matches nicely highlighted in the results.\u00c2\u00a0 All you have to do to use this beauty is run <code>grep --color<\/code> instead of just <code>grep<\/code>. (Hint: an alias might be in order.)<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Yet another of those tiny things that I wish I discovered a billion years ago &#8211; GNU grep supports color.\u00c2\u00a0 Yup, that&#8217;s right.\u00c2\u00a0 You can actually have your matches nicely highlighted in the results.\u00c2\u00a0 All you have to do to use this beauty is run grep &#8211;color instead of just grep. (Hint: an alias might &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2006\/04\/07\/gnu-grep-can-be-colorful\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">GNU grep can be colorful<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1],"tags":[],"keyring_services":[],"class_list":["post-10039","post","type-post","status-publish","format-standard","hentry","category-general"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":9803,"url":"https:\/\/mamchenkov.net\/wordpress\/2006\/01\/06\/daily-del-icio-us-bookmarks\/","url_meta":{"origin":10039,"position":0},"title":"Daily del.icio.us bookmarks","author":"Leonid Mamchenkov","date":"January 6, 2006","format":false,"excerpt":"Shared bookmarks for del.icio.us user tvset on 2006-01-05 GREP tutorial Tagged as: bash gnu grep howto linux reference software sysadmin tutorial unix","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16590,"url":"https:\/\/mamchenkov.net\/wordpress\/2012\/07\/30\/ive-been-using-a-combination-of-ps-and-grep-for-y\/","url_meta":{"origin":10039,"position":1},"title":"I&#8217;ve been using a combination of ps and grep for y&#8230;","author":"Leonid Mamchenkov","date":"July 30, 2012","format":"status","excerpt":"I've been using a combination of ps and grep for years now. \u00a0Apparently, there is an easier way - pgrep and pkill utilities, which are a part of procps package on Fedora and CentOS distributions.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":28521,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/04\/25\/gron-make-json-greppable\/","url_meta":{"origin":10039,"position":2},"title":"gron &#8211; Make JSON greppable!","author":"Leonid Mamchenkov","date":"April 25, 2018","format":false,"excerpt":"gron is a grep-like tool that specializes in JSON format.\u00a0 Unlike grep, however, it works both way - in and out.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16781,"url":"https:\/\/mamchenkov.net\/wordpress\/2012\/10\/02\/bash-directory-bookmarks\/","url_meta":{"origin":10039,"position":3},"title":"Bash directory bookmarks","author":"Leonid Mamchenkov","date":"October 2, 2012","format":false,"excerpt":"While reading through the comments to this Habrahabr article (in Russian), I came across an excellent tip for the directory bookmarks in bash shell. \u00a0Here's how to set it up. Firstly, add the following lines to your .bashrc or .bash_profile file: Secondly, if you are already using ~\/.bookmarks file for\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7367,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/03\/23\/repeat-of-the-last-command-in-bash\/","url_meta":{"origin":10039,"position":4},"title":"Repeat of the last command in bash","author":"Leonid Mamchenkov","date":"March 23, 2004","format":false,"excerpt":"Ok, we all know that to repeat the last command in bash (as well as many other shells) you just need to press the Up key. Sometimes though it is handy to test a command before using it as a subset of a bigger command. Example: if I want to\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10158,"url":"https:\/\/mamchenkov.net\/wordpress\/2006\/06\/04\/daily-del-icio-us-bookmarks\/","url_meta":{"origin":10039,"position":5},"title":"Daily del.icio.us bookmarks","author":"Leonid Mamchenkov","date":"June 4, 2006","format":false,"excerpt":"Shared bookmarks for del.icio.us user tvset on 2006-06-03 the cluetrain manifesto Tagged as: business culture marketing motivation politics social startup technology web2.0 reboot Tagged as: conferences ideas innovation social technology web2.0 Seth's Blog: How to get traffic for your blog Tagged as: blogging lists traffic tutorial web2.0 writing Linux.com |\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/10039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=10039"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/10039\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=10039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=10039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=10039"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=10039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}