<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>C_6B4A2B</author_name>
  <author_url>https://blog.hatena.ne.jp/C_6B4A2B/</author_url>
  <blog_title>C_6B4A2Bの日記</blog_title>
  <blog_url>https://c-6b4a2b.hatenadiary.org/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>メモ</anon>
    <anon>シェルスクリプト</anon>
  </categories>
  <description>いろいろテストしてて、リダイレクトでファイルを出力しようとしたら権限がないって言われてしまった。 調べてみたら解決方法は2つあるみたい。 sudoでリダイレクトをしたいとき - Y's note 「sudo sh -c &quot;コマンド &gt; 出力ファイル&quot;」とするか、「コマンド | sudo tee 出力ファイル」とすれば大丈夫そう。 前者の場合はコマンドの中にクォーテーションが含まれてるとめんどくさそうかな。 後者で標準出力には結果を出さなくていい場合は単純に「 &gt; /dev/null」のリダイレクトで。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fc-6b4a2b.hatenadiary.org%2Fentry%2F20130506%2F1367791685&quot; title=&quot;リダイレクトに失敗した - C_6B4A2Bの日記&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-05-06 07:08:05</published>
  <title>リダイレクトに失敗した</title>
  <type>rich</type>
  <url>https://c-6b4a2b.hatenadiary.org/entry/20130506/1367791685</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
