<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>guitarrapc_tech</author_name>
  <author_url>https://blog.hatena.ne.jp/guitarrapc_tech/</author_url>
  <blog_title>tech.guitarrapc.cóm</blog_title>
  <blog_url>https://tech.guitarrapc.com/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>リダイレクト演算子……PowerShellではあまり使ってません。 せいぜい$null破棄時の&gt;$nullでしょうか…… 気になるアレがありました。 シェルコマンドの2&gt;&amp;1とはどのような意味でしょうか？ Bashは弱い子なので簡潔な説明にへぇっと納得してたのですが……PowerShellでの動作を確認してみましょう。 条件 簡単にエラーを出す方法にGet-ChildItemを使います。 Get-ChildItemコマンドレットは「対象ファイルが存在すれば標準出力」「対象ファイルが存在しなければ標準エラー出力」となります。 Bashに近くなるようにエイリアスのlsと今回は表記しましょう。 まず…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.guitarrapc.com%2Fentry%2F2013%2F04%2F02%2F200426&quot; title=&quot;PowerShellのリダイレクト演算子をまとめておく - tech.guitarrapc.cóm&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>2013-04-02 20:04:26</published>
  <title>PowerShellのリダイレクト演算子をまとめておく</title>
  <type>rich</type>
  <url>https://tech.guitarrapc.com/entry/2013/04/02/200426</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
