{"id":46,"date":"2009-10-02T16:23:52","date_gmt":"2009-10-02T15:23:52","guid":{"rendered":"http:\/\/slack.codemaniacs.com\/blog\/?p=46"},"modified":"2009-11-04T16:40:42","modified_gmt":"2009-11-04T15:40:42","slug":"bash-tip","status":"publish","type":"post","link":"https:\/\/slack.codemaniacs.com\/blog\/2009\/10\/02\/bash-tip\/","title":{"rendered":"Bash tip"},"content":{"rendered":"<p>Sometimes we have to do something like this:<\/p>\n<pre>\r\n$ generate_things > tmp1\r\n$ generate_other_things > tmp2\r\n$ process_both tmp1 tmp2\r\n<\/pre>\n<p>With bash, it&#8217;s possible to avoid creating these temporary files:<\/p>\n<pre>\r\n$ process_both &lt;(generate_things) &lt;(generate_other_things)\r\n<\/pre>\n<p>:)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes we have to do something like this: $ generate_things > tmp1 $ generate_other_things > tmp2 $ process_both tmp1 tmp2 With bash, it&#8217;s possible to avoid creating these temporary files: $ process_both &lt;(generate_things) &lt;(generate_other_things) :)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/posts\/46"}],"collection":[{"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":5,"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":60,"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/posts\/46\/revisions\/60"}],"wp:attachment":[{"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}