{"id":53318,"date":"2020-12-25T09:04:34","date_gmt":"2020-12-25T09:04:34","guid":{"rendered":"https:\/\/www.cryptocabaret.com\/?p=53318"},"modified":"2020-12-25T09:04:34","modified_gmt":"2020-12-25T09:04:34","slug":"how-to-use-heredoc-as-a-text-editor","status":"publish","type":"post","link":"https:\/\/www.cryptocabaret.com\/?p=53318","title":{"rendered":"How to use heredoc as a text editor"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" typeof=\"foaf:Image\" src=\"https:\/\/www.cryptocabaret.com\/wp-content\/uploads\/2020\/12\/lenovo-thinkpad-laptop-window-focus-2.png\" width=\"1000\" height=\"560\" alt=\"woman on laptop sitting at the window\" title=\"young woman working on a laptop\"><\/p>\n<p>There\u2019s a somewhat obscure feature in Linux and Unix shells that allows you to open a sort of do-while loop for the\u00a0<a href=\"https:\/\/opensource.com\/article\/19\/2\/getting-started-cat-command\" target=\"_self\" rel=\"noopener noreferrer\">cat<\/a>\u00a0command. It\u2019s called the\u00a0<em>heredoc<\/em>, and it enables you to have, more or less, a text editor no matter what shell you\u2019re using. The syntax is:<\/p>\n<p><a href=\"https:\/\/opensource.com\/article\/20\/12\/heredoc\">read more<\/a><\/p>\n<p class=\"wpematico_credit\"><small>Powered by <a href=\"http:\/\/www.wpematico.com\" target=\"_blank\" rel=\"noopener noreferrer\">WPeMatico<\/a><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There\u2019s a somewhat obscure feature in Linux and Unix shells that allows you to open a sort of do-while loop for the\u00a0cat\u00a0command. It\u2019s called the\u00a0heredoc, and it enables you to have, more or less, a text editor no matter what shell you\u2019re using. The syntax is: read more Powered by WPeMatico<\/p>\n","protected":false},"author":1,"featured_media":53319,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[307],"tags":[],"class_list":["post-53318","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-open-source"],"_links":{"self":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/posts\/53318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=53318"}],"version-history":[{"count":0,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/posts\/53318\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/media\/53319"}],"wp:attachment":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=53318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=53318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=53318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}