Findstr

findstr
다른 이름qgrep
개발자마이크로소프트, ReactOS 기여자들
운영 체제윈도우, ReactOS
플랫폼크로스 플랫폼
종류명령어
라이선스Windows: 사유 상용 소프트웨어
ReactOS: GNU 일반 공중 사용 허가서
웹사이트docs.microsoft.com/en-us/windows-server/administration/windows-commands/findstr

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.

  1. 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:
  2. 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.
  3. 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.
  4. 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.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.