【PowerShell】ヒアドキュメントから1行ずつ取得 Powershell Windows Posted by: 2017年2月21日 no comments yet <スポンサーリンク> Powershellでヒアドキュメントから1行ずつ取得する例 #ヒアドキュメントを改行で区切り配列へ格納 $ServerList = $ServerList -split "`n" #1行ずつ表示 $ServerList[0] $ServerList[1] #行数の取得 ($ServerList | Measure-Object).Count #ヒアドキュメント $ServerList =@" SV-01 SV-02 SV-03 SV-04 SV-05 "@ <スポンサーリンク> older newer コメントを残す コメントをキャンセルAllowed tags: you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>Please note: all comments go through moderation. Name (required) Email (required) Website キャプチャコード * Δemail confirm* post date* 日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)