Findstr
| 다른 이름 | qgrep |
|---|---|
| 개발자 | 마이크로소프트, ReactOS 기여자들 |
| 운영 체제 | 윈도우, ReactOS |
| 플랫폼 | 크로스 플랫폼 |
| 종류 | 명령어 |
| 라이선스 | Windows: 사유 상용 소프트웨어 ReactOS: GNU 일반 공중 사용 허가서 |
| 웹사이트 | docs |
findstr는 컴퓨팅에서 마이크로소프트 윈도우, ReactOS의 명령 줄 인터프리터(셸)의 명령어이다. 컴퓨터 파일 내의 특정 텍스트 문자열을 검색하기 위해 사용한다.
문법
FINDSTR 플래그 문자열 [드라이브:][경로]파일이름[...]
예시
실행 중인 서비스들을 file _services.txt에 저장하고 이 저장된 파일에서 network라는 단어가 포함된 줄을 (대소문자 구분 안 함) 검색하는 예시이다.
@echo off
set searchstr=network
net start>_services.txt
FINDSTR /I "%searchstr%" _services.txt
pause
출력은 다음과 같다:
Network Connections Network List Service Network Location Awareness Network Store Interface Service Windows Media Player Network Sharing Service Press any key to continue . . .
같이 보기
외부 링크
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.