<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>bash</anon>
  </categories>
  <description>$ ./mycmd &gt; my.log みたいな事は普段シェルスクリプト書く人はご存知かと思います。 ここで、組み込みコマンドexecとサブシェルを使うとサブシェル中の実行結果をリダイレクトさせることが可能に・ 以下の例では、日付を出力した後mycmdを実行しそれをmylogに書き込みます ( exec &gt; /path/to/my.log date /path/to/mycmd ) これくらいの例だと旨みがないですが……報告書を作るようなシェルスクリプトで、 細かいコマンドを都度読み出して整形させるようなものなら可読性が増すかも。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2022%2F07%2F04%2F235516&quot; title=&quot;サブシェル内の実行結果をリダイレクトでファイルに飛ばす - Bye Bye Moore&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-07-04 23:55:16</published>
  <title>サブシェル内の実行結果をリダイレクトでファイルに飛ばす</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2022/07/04/235516</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
