teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

訂正

2018/07/25 21:18

投稿

nullpon
nullpon

スコア5739

answer CHANGED
@@ -1,4 +1,4 @@
1
1
  WindowsならPowershellを使いましょう。
2
2
  ```
3
- PS> Select-String -Path "file.list" -Pattern "Surname" -Context 1
3
+ PS> Select-String -Path "file.list" -Pattern "Surname" -Context 0,1
4
4
  ```

1

訂正

2018/07/25 21:18

投稿

nullpon
nullpon

スコア5739

answer CHANGED
@@ -1,4 +1,4 @@
1
- WindowsならPowershell使
1
+ WindowsならPowershell使しょう
2
2
  ```
3
- PS> Select-String -Path "file.list" -Pattern "Surname" -Context 1
3
+ PS> Select-String -Path "file.list" -Pattern "Surname" -Context 1
4
4
  ```