<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dogwood008</author_name>
  <author_url>https://blog.hatena.ne.jp/dogwood008/</author_url>
  <blog_title>dogwood008の開発メモ！</blog_title>
  <blog_url>https://blog.dogwood008.com/</blog_url>
  <categories>
    <anon>Bash</anon>
    <anon>ZShell</anon>
    <anon>Shell</anon>
  </categories>
  <description>要旨 Bashで用意されているプロセス置換 (Process Substitution) という仕組みを使うと、下記のような書き方ができる。 $ ls /foo/bar 1&gt; &gt;(tee stdout.log) 2&gt; &gt;(tee stderr.log) ls: /foo/bar: No such file or directory # &lt;--- 標準エラー $ cat stderr.log ls: /foo/bar: No such file or directory # &lt;--- `./stderr.log` にも書き込まれた 背景 Bashで標準出力 (stdout)と標準エラー (std…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.dogwood008.com%2Fentry%2Fbash-process-substitution&quot; title=&quot;【Bash】tee でstdoutとstderrをそれぞれ別々にする方法 (Process Substitution) - dogwood008の開発メモ！&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-05-15 11:00:00</published>
  <title>【Bash】tee でstdoutとstderrをそれぞれ別々にする方法 (Process Substitution)</title>
  <type>rich</type>
  <url>https://blog.dogwood008.com/entry/bash-process-substitution</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
