PowerShellã§ãã¡ã¤ã«éä¸ã®é¨åãåãåºãããã¨ãã©ããããã®ã¡ã¢ HTMLã®ãã¡ã¤ã«ããã¿ã°ã«å²ã¾ããå 容åãåºãã®ã¨ãã«ä½ã£ãã®ã§ã Select-Stringã§ãã¡ã¤ã«ã®è©²å½å ´æãåãåºã $FilePath = "ã©ã£ãã®ãã¡ã¤ã«.html" $CutStartNum = (Select-String -Path $FilePath -Pattern '\s*<head.*>').LineNumber $CutEndNum = (Select-String -Path $FilePath -Pattern '\s*</head.*>').LineNumber ããã§headã¿ã°ããã¡ã¤ã«ã®ã©ã®å ´æã«ããããåå¾åºæ¥ãã headã¿ã°ã ã¨ãã¡ã¤ã«ã«ä¸ã¤ãããªãããããã§ãããã©ãè¤æ°ãããããªå ´åã¯ã¡ãã£ã¨é¢åã«ãªãã Select-Stringã¯è©²å½ç®æã®ãªã¹ããè¿ãã¦æ¥ã
{{#tags}}- {{label}}
{{/tags}}