본문 바로가기
Etc

PowerShell 파일 내용 찾기 명령어

by NaHyungMin 2021. 9. 17.
Select-string -Path "d:\texttest.txt" -Pattern '찾을 텍스트'

 

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/select-string?view=powershell-7.1 

 

Select-String (Microsoft.PowerShell.Utility) - PowerShell

The Select-String cmdlet searches for text and text patterns in input strings and files. You can use Select-String similar to grep in UNIX or findstr.exe in Windows. Select-String is based on lines of text. By default, Select-String finds the first match i

docs.microsoft.com

 

'Etc' 카테고리의 다른 글

Docker 우분투 설치  (0) 2025.03.24
보유 기술  (0) 2022.08.12
Java Jmeter 사용법(Windows)  (0) 2021.03.29
IDE 이클립스, 인텔리제이, Visual Studio 디버그 단축키  (0) 2020.08.31
워드프레스 우커머스 버튼 추가  (0) 2020.07.27