{"id":19828,"date":"2014-01-24T11:30:55","date_gmt":"2014-01-24T09:30:55","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=19828"},"modified":"2014-01-24T11:31:43","modified_gmt":"2014-01-24T09:31:43","slug":"awk-sed-and-perl-one-liners","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2014\/01\/24\/awk-sed-and-perl-one-liners\/","title":{"rendered":"Awk, sed, and Perl one-liners"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>Here is a useful collection of one-liners in:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.pement.org\/awk\/awk1line.txt\">Awk<\/a><\/li>\n<li><a href=\"http:\/\/www.pement.org\/sed\/sed1line.txt\">Sed<\/a><\/li>\n<li><a href=\"http:\/\/www.catonmat.net\/download\/perl1line.txt\">Perl<\/a><\/li>\n<\/ul>\n<p>Via <a href=\"http:\/\/www.catonmat.net\/blog\/perltricks-interview\/\">this interview<\/a>.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Here is a useful collection of one-liners in: Awk Sed Perl Via this interview.<\/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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,6,18,133,62],"tags":[3258,1960,36,3259,2297],"keyring_services":[],"class_list":["post-19828","post","type-post","status-publish","format-standard","hentry","category-general","category-linux","category-programming","category-sysadmin","category-technology","tag-awk","tag-command-line","tag-perl","tag-sed","tag-text-editors"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":22003,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/06\/17\/jq-a-lightweight-and-flexible-command-line-json-processor\/","url_meta":{"origin":19828,"position":0},"title":"jq &#8211; a lightweight and flexible command-line JSON processor","author":"Leonid Mamchenkov","date":"June 17, 2014","format":"link","excerpt":"jq - a lightweight and flexible command-line JSON processor. jq is like sed for JSON data \u2013 you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text.","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":40866,"url":"https:\/\/mamchenkov.net\/wordpress\/2019\/03\/29\/programmer-migration-patterns\/","url_meta":{"origin":19828,"position":1},"title":"Programmer migration patterns","author":"Leonid Mamchenkov","date":"March 29, 2019","format":false,"excerpt":"\"Programmer migration patterns\" is an interesting attempt to identify where programmers start and how move from one programming language to another. This is not precise science, obviously. But I have to say that I mostly agree with the findings. The first language that I learned (back in school) was BASIC,\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/03\/programmer-migration-pattern.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":28889,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/10\/25\/up-the-ultimate-plumber\/","url_meta":{"origin":19828,"position":2},"title":"up &#8211; the Ultimate Plumber","author":"Leonid Mamchenkov","date":"October 25, 2018","format":false,"excerpt":"The Ultimate Plumber, or up for short, is an excellent interactive tool for anyone who is building complex command sequences for processing text on the Linux command line.\u00a0 If you are a frequent user of grep, sort, cut, awk, sed, and other similar commands, have a look at this demo.\u00a0\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/10\/up-500x108.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":47765,"url":"https:\/\/mamchenkov.net\/wordpress\/2020\/03\/19\/text-processing-in-the-shell\/","url_meta":{"origin":19828,"position":3},"title":"Text processing in the shell","author":"Leonid Mamchenkov","date":"March 19, 2020","format":false,"excerpt":"Whether you are an experienced shell user, or just a newbie, have a look at this article for a collection of the great tools and examples of how to process text in the shell. It includes all the usual suspects: cat, head, tail, wc, grep, cut, paste, sort, uniq, awk,\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":28600,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/05\/24\/the-awk-programming-language\/","url_meta":{"origin":19828,"position":4},"title":"The AWK Programming Language","author":"Leonid Mamchenkov","date":"May 24, 2018","format":false,"excerpt":"I came across the \"The AWK Programming Language\" book in PDF format.\u00a0 This is so handy that I'll host a copy of the file\u00a0just in case.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/05\/awk-384x500.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":7794,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/08\/12\/thought-of-the-day\/","url_meta":{"origin":19828,"position":5},"title":"Thought of the day","author":"Leonid Mamchenkov","date":"August 12, 2004","format":false,"excerpt":"I think I have finally realized today why I don't like \"corporate\" and \"enterprise\" programmers and the technologies that they enjoy, like Java and XML. Many of them don't take languages like Perl, Python, and PHP seriosly. Text files in general and the word \"script\" in particular make smile. I\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\/19828","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=19828"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/19828\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=19828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=19828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=19828"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=19828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}