<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>amaya382</author_name>
  <author_url>https://blog.hatena.ne.jp/amaya382/</author_url>
  <blog_title>水底</blog_title>
  <blog_url>https://amaya382.hatenablog.jp/</blog_url>
  <categories>
    <anon>linux</anon>
    <anon>shell</anon>
  </categories>
  <description>1. (), {} の利用 (), {} で囲んでまとめてリダイレクト先を指定する. 丸括弧の場合はサブシェルで, 波括弧の場合はカレントシェルで実行される. 例 { command1 command2 } &gt;&gt; log 2&gt;&amp;1 2. exec の利用 exec は現行プロセスを別コマンドのプロセスに置換するコマンドである. このとき, 引数を省略してリダイレクトのみ記述することで現行プロセス (shell) のリダイレクト先を上書きすることができる. 例 exec &gt;&gt; log 2&gt;&amp;1 command1 command2 ちなみに元に戻す方法が見当たらないけどどうやるのだろうか… (ex…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Famaya382.hatenablog.jp%2Fentry%2F2017%2F04%2F17%2F235416&quot; title=&quot;複数のコマンドの出力をまとめてリダイレクトする2つの方法 - 水底&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>2017-04-17 23:54:16</published>
  <title>複数のコマンドの出力をまとめてリダイレクトする2つの方法</title>
  <type>rich</type>
  <url>https://amaya382.hatenablog.jp/entry/2017/04/17/235416</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
