| 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 [1] and prints matching lines to standard output. [2] The command provides similar functionality as find , but findstr supports regular expressions. However, findstr does not support UTF-16 whereas find does. findstr cannot search for null bytes commonly found in Unicode computer files. [3]
findstr was first released as part of the Windows 2000 Resource Kit under the name qgrep. [4] The command is available in Windows [5] [6] and ReactOS. [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