<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kiyo_hiko</author_name>
  <author_url>https://blog.hatena.ne.jp/kiyo_hiko/</author_url>
  <blog_title>kiyo_hikoのブログ</blog_title>
  <blog_url>https://kiyohikou.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>作業中のフォルダーに、指定したファイル名でとにかく空のファイルがほしい場合。 ファイルが無いときはNew-Item (エイリアス：ni)で空のファイル作ればOKなはず。 ファイルが有るときはClear-Contents（エイリアス：clc）でファイルの中身を空にすればOKなはず。 くっつけて関数にしておく。 function NullFile ($f) { if (Test-Path $f) { clc $f; } else { ni -ItemType file $f; } こんな感じでいけます。 &gt; NullFile C:/test.txt</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkiyohikou.hateblo.jp%2Fentry%2F2020%2F07%2F08%2F143818&quot; title=&quot;PowerShellで空のファイルを作る（bashの&amp;quot;:&amp;gt;filename&amp;quot;相当） - kiyo_hikoのブログ&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>2020-07-08 14:38:18</published>
  <title>PowerShellで空のファイルを作る（bashの&quot;:&gt;filename&quot;相当）</title>
  <type>rich</type>
  <url>https://kiyohikou.hateblo.jp/entry/2020/07/08/143818</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
