| findstr | |
|---|---|
| Other names | qgrep |
| Developers | Microsoft, ReactOS Contributors |
| Operating system | Windows,ReactOS |
| Platform | Cross-platform |
| Type | Command |
| License | Windows:Proprietarycommercial software ReactOS:GNU General Public License |
| Website | docs |
findstr is ashellcommand that searches for text infiles[1] and prints matching lines tostandard output.[2]The command provides similar functionality asfind, butfindstr supportsregular expressions. However,findstr does not supportUTF-16 whereasfind does.findstr cannot search fornull bytes commonly found inUnicode computer files.[3]
findstr was first released as part of theWindows 2000Resource Kit under the nameqgrep.[4]The command is available inWindows[5][6] andReactOS.[7]
The command syntax can be described as:
findstr FLAGS TEXT PATH...
FLAGS:
/B/E/L/R/S/I/X/V/N/M/O/P/OFF[LINE]/A:attr/F:file/C:string/G:file/D:dir/?The following command searches the file named "services.txt" for lines containing "network" ignoring case.
findstr /i"network" services.txt