{"id":10712,"date":"2015-02-06T16:54:47","date_gmt":"2015-02-06T21:54:47","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=10712"},"modified":"2015-02-06T16:54:48","modified_gmt":"2015-02-06T21:54:48","slug":"awk-in-20-minutes","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2015\/02\/06\/awk-in-20-minutes\/","title":{"rendered":"Awk in 20 Minutes"},"content":{"rendered":"<p><a href=\"http:\/\/ferd.ca\/awk-in-20-minutes.html\">Fred T-H<\/a> (via <a href=\"https:\/\/news.ycombinator.com\/item?id=8893302\">Hacker News<\/a>):<\/p><blockquote cite=\"http:\/\/ferd.ca\/awk-in-20-minutes.html\"><p>Awk is a tiny programming language and a command line tool. It&rsquo;s particularly appropriate for log parsing on servers, mostly because Awk will operate on files, usually structured in lines of human-readable text.<\/p><p>[&#8230;]<\/p><p>An Awk script is structured simply, as a sequence of patterns and actions[&#8230;]Every line of the document to scan will have to go through each of the patterns, one at a time.<\/p><p>[&#8230;]<\/p><p>Finally, the last kind of pattern is a bit hard to classify. It&rsquo;s halfway between variables and special values, and they&rsquo;re called <em>Fields<\/em>, which deserve a section of their own.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Fred T-H (via Hacker News):Awk is a tiny programming language and a command line tool. It&rsquo;s particularly appropriate for log parsing on servers, mostly because Awk will operate on files, usually structured in lines of human-readable text.[&#8230;]An Awk script is structured simply, as a sequence of patterns and actions[&#8230;]Every line of the document to scan [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[1139,46,71,163],"class_list":["post-10712","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-awk-programming-language","tag-languagedesign","tag-programming","tag-unix"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=10712"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10712\/revisions"}],"predecessor-version":[{"id":10713,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/10712\/revisions\/10713"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=10712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=10712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=10712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}