| findstr | |
|---|---|
| Other names | qgrep |
| Developers | Microsoft, ReactOS Contributors |
| Operating system | Windows, ReactOS |
| Platform | Cross-platform |
| Type | Command |
| License | Windows: Proprietary commercial software ReactOS: GNU General Public License |
| Website | docs |
findstr is a shell command that searches for text in files and prints matching lines to standard output.
The command provides similar functionality as find, but findstr supports some regular expression operators. However, findstr does not support UTF-16 whereas find does. findstr cannot search for null bytes commonly found in Unicode computer files.
findstr was first released as part of the Windows 2000 Resource Kit under the name qgrep.
The command is available in Windows and ReactOS.
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