{"id":10320,"date":"2023-01-04T00:11:11","date_gmt":"2023-01-03T15:11:11","guid":{"rendered":"https:\/\/extan.jp\/?p=10320"},"modified":"2025-03-16T00:54:37","modified_gmt":"2025-03-15T15:54:37","slug":"powershell%e3%81%a7%e6%a4%9c%e7%b4%a2-grep-find%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%ef%bc%81select-string-%e8%a4%87%e6%95%b0%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab","status":"publish","type":"post","link":"https:\/\/extan.jp\/?p=10320","title":{"rendered":"PowerShell\u3067\u691c\u7d22\/grep\/find\u3059\u308b\u65b9\u6cd5\uff01Select-String \u8907\u6570\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u5fdc\u53ef\uff01"},"content":{"rendered":"<p data-pm-slice=\"1 1 []\">PowerShell\u3092\u4f7f\u3063\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u3084\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u7279\u5b9a\u306e\u6587\u5b57\u5217\u3092\u691c\u7d22\u3057\u305f\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f<\/p>\n<p>\u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001<\/p>\n<div class=\"kininarukoto1\">\n<ul data-spread=\"false\">\n<li>UNIX\u306e <code>grep<\/code> \u30b3\u30de\u30f3\u30c9\u306e\u3088\u3046\u306b\u4f7f\u3048\u308bPowerShell\u306e\u691c\u7d22\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044<\/li>\n<li>\u6307\u5b9a\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u62ec\u3067\u691c\u7d22\u3057\u305f\u3044<\/li>\n<li>\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3063\u3066\u9ad8\u5ea6\u306a\u691c\u7d22\u3092\u3057\u305f\u3044<\/li>\n<\/ul>\n<\/div>\n<p>\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u3093\u306a\u304a\u60a9\u307f\u3092\u89e3\u6c7a\u3059\u308b<\/p>\n<div class=\"rdinfo\">\n<ul data-spread=\"false\">\n<li><code>Select-String<\/code> \u30b3\u30de\u30f3\u30c9\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/li>\n<li>\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5<\/li>\n<li>\u6b63\u898f\u8868\u73fe\u3092\u6d3b\u7528\u3057\u305f\u691c\u7d22\u65b9\u6cd5<\/li>\n<\/ul>\n<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\uff01<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u3082\u304f\u3058<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/extan.jp\/?p=10320\/#PowerShell%E3%81%AE%E6%A4%9C%E7%B4%A2%E6%A9%9F%E8%83%BD_%E5%AE%8C%E6%88%90%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8\" >PowerShell\u306e\u691c\u7d22\u6a5f\u80fd \u5b8c\u6210\u30a4\u30e1\u30fc\u30b8<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/extan.jp\/?p=10320\/#PowerShell%E3%81%A7%E6%A4%9C%E7%B4%A2%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\" >PowerShell\u3067\u691c\u7d22\u3059\u308b\u65b9\u6cd5<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/extan.jp\/?p=10320\/#%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E6%96%87%E5%AD%97%E5%88%97%E6%A4%9C%E7%B4%A2_Select-String\" >\u57fa\u672c\u7684\u306a\u6587\u5b57\u5217\u691c\u7d22 (Select-String)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/extan.jp\/?p=10320\/#%E8%A4%87%E6%95%B0%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E4%B8%80%E6%8B%AC%E6%A4%9C%E7%B4%A2\" >\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u62ec\u691c\u7d22<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/extan.jp\/?p=10320\/#%E3%82%B5%E3%83%96%E3%83%95%E3%82%A9%E3%83%AB%E3%83%80%E3%82%92%E5%90%AB%E3%82%81%E3%81%A6%E6%A4%9C%E7%B4%A2\" >\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u3092\u542b\u3081\u3066\u691c\u7d22<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/extan.jp\/?p=10320\/#%E6%AD%A3%E8%A6%8F%E8%A1%A8%E7%8F%BE%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E6%A4%9C%E7%B4%A2\" >\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3063\u305f\u691c\u7d22<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/extan.jp\/?p=10320\/#%E6%A4%9C%E7%B4%A2%E7%B5%90%E6%9E%9C%E3%82%92%E6%8A%BD%E5%87%BA%E3%83%BB%E4%BF%9D%E5%AD%98%E3%81%99%E3%82%8B\" >\u691c\u7d22\u7d50\u679c\u3092\u62bd\u51fa\u30fb\u4fdd\u5b58\u3059\u308b<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/extan.jp\/?p=10320\/#%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\" >\u3055\u3044\u3054\u306b<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"PowerShell%E3%81%AE%E6%A4%9C%E7%B4%A2%E6%A9%9F%E8%83%BD_%E5%AE%8C%E6%88%90%E3%82%A4%E3%83%A1%E3%83%BC%E3%82%B8\"><\/span>PowerShell\u306e\u691c\u7d22\u6a5f\u80fd \u5b8c\u6210\u30a4\u30e1\u30fc\u30b8<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>PowerShell\u306e <code>Select-String<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<div class=\"c_box intitle pink_box\"><div class=\"box_title\"><span>POINT<\/span><\/div>\n<ul data-spread=\"false\">\n<li>\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u3092\u542b\u3080\u884c\u3092\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u691c\u7d22<\/li>\n<li>\u6307\u5b9a\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u5168\u30d5\u30a1\u30a4\u30eb\u3092\u5bfe\u8c61\u306b\u691c\u7d22<\/li>\n<li>\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3063\u305f\u9ad8\u5ea6\u306a\u691c\u7d22<\/li>\n<li>\u691c\u7d22\u7d50\u679c\u306e\u8868\u793a\u3084\u51fa\u529b\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/li>\n<\/ul>\n<\/div>\n\u305d\u308c\u3067\u306f\u3001\u5177\u4f53\u7684\u306a\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"PowerShell%E3%81%A7%E6%A4%9C%E7%B4%A2%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\"><\/span>PowerShell\u3067\u691c\u7d22\u3059\u308b\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E6%96%87%E5%AD%97%E5%88%97%E6%A4%9C%E7%B4%A2_Select-String\"><\/span><strong>\u57fa\u672c\u7684\u306a\u6587\u5b57\u5217\u691c\u7d22 (Select-String)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>\u69cb\u6587:<\/strong><\/p>\n<pre><code>Select-String -Path &quot;\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9&quot; -Pattern &quot;\u691c\u7d22\u6587\u5b57\u5217&quot;<\/code><\/pre>\n<p><strong>\u5165\u529b\u4f8b:<\/strong><\/p>\n<pre><code>Select-String -Path &quot;C:\\Logs\\logfile.txt&quot; -Pattern &quot;error&quot;<\/code><\/pre>\n<p><strong>\u51fa\u529b\u4f8b:<\/strong><\/p>\n<pre><code>logfile.txt:12: [ERROR] Something went wrong.\nlogfile.txt:45: [ERROR] Connection failed.<\/code><\/pre>\n<p><strong>\u89e3\u8aac:<\/strong><\/p>\n<ul data-spread=\"false\">\n<li><code>-Path<br \/>\n<\/code>\u691c\u7d22\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a<\/li>\n<li><code>-Pattern<\/code><br \/>\n\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217\uff08\u5927\u6587\u5b57\u30fb\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3057\u306a\u3044\uff09<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"%E8%A4%87%E6%95%B0%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E4%B8%80%E6%8B%AC%E6%A4%9C%E7%B4%A2\"><\/span><strong>\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u62ec\u691c\u7d22<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u7279\u5b9a\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u3059\u3079\u3066\u306e <code>.log<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code>Select-String -Path &quot;C:\\Logs\\*.log&quot; -Pattern &quot;error&quot;<\/code><\/pre>\n<p><strong>\u51fa\u529b\u4f8b:<\/strong><\/p>\n<pre><code>log1.log:12: [ERROR] Something went wrong.\nlog2.log:22: [ERROR] Timeout occurred.\nlog3.log:35: [ERROR] Disk full.<\/code><\/pre>\n<p><strong>\u89e3\u8aac:<\/strong><\/p>\n<ul data-spread=\"false\">\n<li><code>*.log<\/code><br \/>\n\u6307\u5b9a\u3057\u305f\u62e1\u5f35\u5b50\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5bfe\u8c61\u306b\u3059\u308b<\/li>\n<li><code>-Path<\/code> \u306b\u30d5\u30a9\u30eb\u30c0\u3054\u3068\u6307\u5b9a\u3059\u308c\u3070\u3001\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u53ef\u80fd<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%B5%E3%83%96%E3%83%95%E3%82%A9%E3%83%AB%E3%83%80%E3%82%92%E5%90%AB%E3%82%81%E3%81%A6%E6%A4%9C%E7%B4%A2\"><\/span><strong>\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u3092\u542b\u3081\u3066\u691c\u7d22<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u3059\u3079\u3066\u306e <code>.log<\/code> \u30d5\u30a1\u30a4\u30eb\u3082\u691c\u7d22\u3059\u308b\u5834\u5408\uff1a<\/p>\n<pre><code>Select-String -Path &quot;C:\\Logs\\*.log&quot; -Pattern &quot;error&quot; -Recurse<\/code><\/pre>\n<p><code>-Recurse<\/code> \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u3059\u3079\u3066\u306e\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u3082\u691c\u7d22\u5bfe\u8c61\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%AD%A3%E8%A6%8F%E8%A1%A8%E7%8F%BE%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E6%A4%9C%E7%B4%A2\"><\/span><strong>\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3063\u305f\u691c\u7d22<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>Select-String<\/code> \u306f\u6b63\u898f\u8868\u73fe\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u3088\u308a\u9ad8\u5ea6\u306a\u691c\u7d22\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h4><strong>\u7279\u5b9a\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u691c\u7d22<\/strong><\/h4>\n<p>\u4f8b: \u300c<code>error<\/code>\u300d\u307e\u305f\u306f\u300c<code>failed<\/code>\u300d\u3092\u542b\u3080\u884c\u3092\u691c\u7d22<\/p>\n<pre><code>Select-String -Path &quot;C:\\Logs\\*.log&quot; -Pattern &quot;error|failed&quot;<\/code><\/pre>\n<h4><strong>\u7279\u5b9a\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u691c\u7d22\uff08\u4f8b: IP\u30a2\u30c9\u30ec\u30b9\uff09<\/strong><\/h4>\n<pre><code>Select-String -Path &quot;C:\\Logs\\*.log&quot; -Pattern &quot;\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\b&quot;<\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001IP\u30a2\u30c9\u30ec\u30b9\uff08\u4f8b: <code>192.168.1.1<\/code>\uff09\u3092\u691c\u7d22\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%A4%9C%E7%B4%A2%E7%B5%90%E6%9E%9C%E3%82%92%E6%8A%BD%E5%87%BA%E3%83%BB%E4%BF%9D%E5%AD%98%E3%81%99%E3%82%8B\"><\/span><strong>\u691c\u7d22\u7d50\u679c\u3092\u62bd\u51fa\u30fb\u4fdd\u5b58\u3059\u308b<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u691c\u7d22\u7d50\u679c\u3092\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code>Select-String -Path &quot;C:\\Logs\\*.log&quot; -Pattern &quot;error&quot; | Out-File &quot;C:\\Logs\\error_log.txt&quot;<\/code><\/pre>\n<p>\u307e\u305f\u3001\u691c\u7d22\u7d50\u679c\u3092\u5909\u6570\u306b\u4fdd\u5b58\u3057\u3066\u51e6\u7406\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre><code>$results = Select-String -Path &quot;C:\\Logs\\*.log&quot; -Pattern &quot;error&quot;\n$results | ForEach-Object { $_.Line }<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u691c\u7d22\u306b\u30d2\u30c3\u30c8\u3057\u305f\u884c\u3060\u3051\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\"><\/span>\u3055\u3044\u3054\u306b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001<\/p>\n<div class=\"endinfo\">\n<ul data-spread=\"false\">\n<li>PowerShell \u306e <code>Select-String<\/code> \u3092\u4f7f\u3063\u305f\u691c\u7d22\u65b9\u6cd5<\/li>\n<li>\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u306e\u691c\u7d22<\/li>\n<li>\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u691c\u7d22<\/li>\n<li>\u6b63\u898f\u8868\u73fe\u3092\u6d3b\u7528\u3057\u305f\u9ad8\u5ea6\u306a\u691c\u7d22<\/li>\n<li>\u691c\u7d22\u7d50\u679c\u306e\u4fdd\u5b58\u3084\u52a0\u5de5<\/li>\n<\/ul>\n<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>PowerShell\u3092\u6d3b\u7528\u3059\u308c\u3070\u3001Windows\u74b0\u5883\u3067\u3082UNIX\u306e <code>grep<\/code> \u306e\u3088\u3046\u306a\u691c\u7d22\u6a5f\u80fd\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PowerShell\u3092\u4f7f\u3063\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u3084\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u7279\u5b9a\u306e\u6587\u5b57\u5217\u3092\u691c\u7d22\u3057\u305f\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f \u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001 UNIX\u306e grep \u30b3\u30de\u30f3\u30c9\u306e\u3088\u3046\u306b\u4f7f\u3048\u308bPowerShell\u306e\u691c\u7d22\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":10244,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[204],"tags":[203],"class_list":{"0":"post-10320","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-powershell","8":"tag-powershell","9":"article cf"},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u30bf\u30ab\u30d2\u30ed@extan\"\/>\n\t<meta name=\"keywords\" content=\"powershell\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/extan.jp\/?p=10320\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"PowerShell\u3067\u691c\u7d22\/grep\/find\u3059\u308b\u65b9\u6cd5\uff01Select-String \u8907\u6570\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u5fdc\u53ef\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=10320\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-01-03T15:11:11+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-03-15T15:54:37+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"PowerShell\u3067\u691c\u7d22\/grep\/find\u3059\u308b\u65b9\u6cd5\uff01Select-String \u8907\u6570\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u5fdc\u53ef\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10320#article\",\"name\":\"PowerShell\\u3067\\u691c\\u7d22\\\/grep\\\/find\\u3059\\u308b\\u65b9\\u6cd5\\uff01Select-String \\u8907\\u6570\\u30c6\\u30ad\\u30b9\\u30c8\\u30d5\\u30a1\\u30a4\\u30eb\\u3082\\u5bfe\\u5fdc\\u53ef\\uff01 | \\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"headline\":\"PowerShell\\u3067\\u691c\\u7d22\\\/grep\\\/find\\u3059\\u308b\\u65b9\\u6cd5\\uff01Select-String \\u8907\\u6570\\u30c6\\u30ad\\u30b9\\u30c8\\u30d5\\u30a1\\u30a4\\u30eb\\u3082\\u5bfe\\u5fdc\\u53ef\\uff01\",\"author\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/extan.jp\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/powershell.png\",\"width\":857,\"height\":607,\"caption\":\"powershell\"},\"datePublished\":\"2023-01-04T00:11:11+09:00\",\"dateModified\":\"2025-03-16T00:54:37+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10320#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10320#webpage\"},\"articleSection\":\"PowerShell, PowerShell\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10320#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/extan.jp\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=47#listItem\",\"name\":\"Microsoft 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=47#listItem\",\"position\":2,\"name\":\"Microsoft 365\",\"item\":\"https:\\\/\\\/extan.jp\\\/?cat=47\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=204#listItem\",\"name\":\"PowerShell\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=204#listItem\",\"position\":3,\"name\":\"PowerShell\",\"item\":\"https:\\\/\\\/extan.jp\\\/?cat=204\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10320#listItem\",\"name\":\"PowerShell\\u3067\\u691c\\u7d22\\\/grep\\\/find\\u3059\\u308b\\u65b9\\u6cd5\\uff01Select-String \\u8907\\u6570\\u30c6\\u30ad\\u30b9\\u30c8\\u30d5\\u30a1\\u30a4\\u30eb\\u3082\\u5bfe\\u5fdc\\u53ef\\uff01\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=47#listItem\",\"name\":\"Microsoft 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10320#listItem\",\"position\":4,\"name\":\"PowerShell\\u3067\\u691c\\u7d22\\\/grep\\\/find\\u3059\\u308b\\u65b9\\u6cd5\\uff01Select-String \\u8907\\u6570\\u30c6\\u30ad\\u30b9\\u30c8\\u30d5\\u30a1\\u30a4\\u30eb\\u3082\\u5bfe\\u5fdc\\u53ef\\uff01\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=204#listItem\",\"name\":\"PowerShell\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\",\"name\":\"\\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"description\":\"\\u50cd\\u304f\\u4eba\\u306e\\u81ea\\u7531\\u6642\\u9593\\u3092\\u3064\\u304f\\u308b\",\"url\":\"https:\\\/\\\/extan.jp\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\",\"url\":\"https:\\\/\\\/extan.jp\\\/?author=1\",\"name\":\"\\u30bf\\u30ab\\u30d2\\u30ed@extan\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10320#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u30bf\\u30ab\\u30d2\\u30ed@extan\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10320#webpage\",\"url\":\"https:\\\/\\\/extan.jp\\\/?p=10320\",\"name\":\"PowerShell\\u3067\\u691c\\u7d22\\\/grep\\\/find\\u3059\\u308b\\u65b9\\u6cd5\\uff01Select-String \\u8907\\u6570\\u30c6\\u30ad\\u30b9\\u30c8\\u30d5\\u30a1\\u30a4\\u30eb\\u3082\\u5bfe\\u5fdc\\u53ef\\uff01 | \\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10320#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/extan.jp\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/powershell.png\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10320\\\/#mainImage\",\"width\":857,\"height\":607,\"caption\":\"powershell\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=10320#mainImage\"},\"datePublished\":\"2023-01-04T00:11:11+09:00\",\"dateModified\":\"2025-03-16T00:54:37+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/extan.jp\\\/#website\",\"url\":\"https:\\\/\\\/extan.jp\\\/\",\"name\":\"\\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"description\":\"\\u50cd\\u304f\\u4eba\\u306e\\u81ea\\u7531\\u6642\\u9593\\u3092\\u3064\\u304f\\u308b\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"PowerShell\u3067\u691c\u7d22\/grep\/find\u3059\u308b\u65b9\u6cd5\uff01Select-String \u8907\u6570\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u5fdc\u53ef\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","description":"","canonical_url":"https:\/\/extan.jp\/?p=10320","robots":"max-image-preview:large","keywords":"powershell","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/extan.jp\/?p=10320#article","name":"PowerShell\u3067\u691c\u7d22\/grep\/find\u3059\u308b\u65b9\u6cd5\uff01Select-String \u8907\u6570\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u5fdc\u53ef\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","headline":"PowerShell\u3067\u691c\u7d22\/grep\/find\u3059\u308b\u65b9\u6cd5\uff01Select-String \u8907\u6570\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u5fdc\u53ef\uff01","author":{"@id":"https:\/\/extan.jp\/?author=1#author"},"publisher":{"@id":"https:\/\/extan.jp\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/extan.jp\/wp-content\/uploads\/2022\/12\/powershell.png","width":857,"height":607,"caption":"powershell"},"datePublished":"2023-01-04T00:11:11+09:00","dateModified":"2025-03-16T00:54:37+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/extan.jp\/?p=10320#webpage"},"isPartOf":{"@id":"https:\/\/extan.jp\/?p=10320#webpage"},"articleSection":"PowerShell, PowerShell"},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=10320#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/extan.jp#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extan.jp","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=47#listItem","name":"Microsoft 365"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=47#listItem","position":2,"name":"Microsoft 365","item":"https:\/\/extan.jp\/?cat=47","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=204#listItem","name":"PowerShell"},"previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=204#listItem","position":3,"name":"PowerShell","item":"https:\/\/extan.jp\/?cat=204","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?p=10320#listItem","name":"PowerShell\u3067\u691c\u7d22\/grep\/find\u3059\u308b\u65b9\u6cd5\uff01Select-String \u8907\u6570\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u5fdc\u53ef\uff01"},"previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=47#listItem","name":"Microsoft 365"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?p=10320#listItem","position":4,"name":"PowerShell\u3067\u691c\u7d22\/grep\/find\u3059\u308b\u65b9\u6cd5\uff01Select-String \u8907\u6570\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u5fdc\u53ef\uff01","previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=204#listItem","name":"PowerShell"}}]},{"@type":"Organization","@id":"https:\/\/extan.jp\/#organization","name":"\u30a8\u30af\u77ed\uff5cExtan.jp","description":"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b","url":"https:\/\/extan.jp\/"},{"@type":"Person","@id":"https:\/\/extan.jp\/?author=1#author","url":"https:\/\/extan.jp\/?author=1","name":"\u30bf\u30ab\u30d2\u30ed@extan","image":{"@type":"ImageObject","@id":"https:\/\/extan.jp\/?p=10320#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g","width":96,"height":96,"caption":"\u30bf\u30ab\u30d2\u30ed@extan"}},{"@type":"WebPage","@id":"https:\/\/extan.jp\/?p=10320#webpage","url":"https:\/\/extan.jp\/?p=10320","name":"PowerShell\u3067\u691c\u7d22\/grep\/find\u3059\u308b\u65b9\u6cd5\uff01Select-String \u8907\u6570\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u5fdc\u53ef\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","inLanguage":"ja","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"breadcrumb":{"@id":"https:\/\/extan.jp\/?p=10320#breadcrumblist"},"author":{"@id":"https:\/\/extan.jp\/?author=1#author"},"creator":{"@id":"https:\/\/extan.jp\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/extan.jp\/wp-content\/uploads\/2022\/12\/powershell.png","@id":"https:\/\/extan.jp\/?p=10320\/#mainImage","width":857,"height":607,"caption":"powershell"},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=10320#mainImage"},"datePublished":"2023-01-04T00:11:11+09:00","dateModified":"2025-03-16T00:54:37+09:00"},{"@type":"WebSite","@id":"https:\/\/extan.jp\/#website","url":"https:\/\/extan.jp\/","name":"\u30a8\u30af\u77ed\uff5cExtan.jp","description":"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b","inLanguage":"ja","publisher":{"@id":"https:\/\/extan.jp\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"\u30a8\u30af\u77ed\uff5cExtan.jp","og:type":"article","og:title":"PowerShell\u3067\u691c\u7d22\/grep\/find\u3059\u308b\u65b9\u6cd5\uff01Select-String \u8907\u6570\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u5fdc\u53ef\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","og:url":"https:\/\/extan.jp\/?p=10320","article:published_time":"2023-01-03T15:11:11+00:00","article:modified_time":"2025-03-15T15:54:37+00:00","twitter:card":"summary","twitter:title":"PowerShell\u3067\u691c\u7d22\/grep\/find\u3059\u308b\u65b9\u6cd5\uff01Select-String \u8907\u6570\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u5fdc\u53ef\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp"},"aioseo_meta_data":{"post_id":"10320","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"created":"2026-06-24 15:27:58","updated":"2026-06-24 15:27:58","primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\/?cat=47\" title=\"Microsoft 365\">Microsoft 365<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\/?cat=204\" title=\"PowerShell\">PowerShell<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPowerShell\u3067\u691c\u7d22\/grep\/find\u3059\u308b\u65b9\u6cd5\uff01Select-String \u8907\u6570\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u5fdc\u53ef\uff01\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/extan.jp"},{"label":"Microsoft 365","link":"https:\/\/extan.jp\/?cat=47"},{"label":"PowerShell","link":"https:\/\/extan.jp\/?cat=204"},{"label":"PowerShell\u3067\u691c\u7d22\/grep\/find\u3059\u308b\u65b9\u6cd5\uff01Select-String \u8907\u6570\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u5bfe\u5fdc\u53ef\uff01","link":"https:\/\/extan.jp\/?p=10320"}],"_links":{"self":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/10320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10320"}],"version-history":[{"count":9,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/10320\/revisions"}],"predecessor-version":[{"id":14299,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/10320\/revisions\/14299"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/media\/10244"}],"wp:attachment":[{"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}