<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>BladeCatcher</author_name>
  <author_url>https://blog.hatena.ne.jp/BladeCatcher/</author_url>
  <blog_title>語彙力が死んでる</blog_title>
  <blog_url>https://rehctacedalb.hateblo.jp/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>Powershellで関数を作れと指示があった。 関数の中身は、ある文字列の存在の有無を検索し、結果によって出力メッセージを変えろ、的なもの。 そしてその関数は、別なファイルから呼び出せるようにすること。 以下は関数用ファイルの中身。超適当だが、Pingの実行結果から文字列を検索しようとしている。 function grep ($word){ ping localhost | Select-String -Pattern $word } 以下は呼び出し用ファイルの中身。 . &quot;.\\pingrep.ps1&quot;$result = grep &quot;ラウンド トリップの概算時間&quot;if($result -e…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frehctacedalb.hateblo.jp%2Fentry%2F2019%2F03%2F06%2F152609&quot; title=&quot;PowerShellで関数を作ろう - 語彙力が死んでる&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>2019-03-06 15:26:09</published>
  <title>PowerShellで関数を作ろう</title>
  <type>rich</type>
  <url>https://rehctacedalb.hateblo.jp/entry/2019/03/06/152609</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
