<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mk_55</author_name>
  <author_url>https://blog.hatena.ne.jp/mk_55/</author_url>
  <blog_title>mk_55's diary</blog_title>
  <blog_url>https://mk-55.hatenablog.com/</blog_url>
  <categories>
    <anon>Powershell</anon>
  </categories>
  <description>範囲演算子(..)とパイプ(|)でループ処理のようなことができる 普通にループで書くなら以下のようになる。 #forループの場合 for ($i=0; $i -lt 10; $i++){ echo &quot;hoge&quot; } #foreachループの場合 foreach($cnt in 1..10){ echo &quot;hoge&quot; } でも下のほうがすっきりしていると思う PS D:\SandBox&gt; 1..10 | %{ echo &quot;hoge&quot;} 変数も使える(一応実行例も載せた) PS D:\SandBox&gt; $limit=10 PS D:\SandBox&gt; 1..$limit | %{ echo &quot;ho…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmk-55.hatenablog.com%2Fentry%2F2016%2F12%2F17%2F115632&quot; title=&quot;Powershellでループを書かずに指定回数処理を繰り返す - mk_55&amp;#39;s diary&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>2016-12-17 11:56:32</published>
  <title>Powershellでループを書かずに指定回数処理を繰り返す</title>
  <type>rich</type>
  <url>https://mk-55.hatenablog.com/entry/2016/12/17/115632</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
