{"author_url":"https://blog.hatena.ne.jp/inari_ym/","author_name":"inari_ym","published":"2022-05-24 11:17:05","title":"PowerShell \u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finari-ym.hatenablog.jp%2Fentry%2F2022%2F05%2F24%2F111705\" title=\"PowerShell \u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c - inari_ym\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","blog_url":"https://inari-ym.hatenablog.jp/","provider_name":"Hatena Blog","description":"\u30d5\u30a1\u30a4\u30eb\u306e\u7a7a\u884c\u3092\u524a\u9664\u3057\u3066\u6a19\u6e96\u51fa\u529b $file = Get-Content hoge.txt $file | Out-String -Stream | ?{$_ -ne \"\"} \u53ef\u5909\u30ea\u30b9\u30c8\u306b\u884c\u3092\u8ffd\u52a0 using namespace System.Collections.Generic $myList = [List[String]]@() myList.Add(\"hoge\") foreach\u3067\u30eb\u30fc\u30d7 $newfile = foreach ($line in $file) { if ($line.StartsWith(\"hoge\")) { $str + \",\" + $line } else { $\u2026","image_url":null,"blog_title":"inari_ym\u306e\u30d6\u30ed\u30b0","version":"1.0","type":"rich","provider_url":"https://hatena.blog","url":"https://inari-ym.hatenablog.jp/entry/2022/05/24/111705","categories":[],"height":"190"}