![]() Inverse class: any one character not in set Character class: any one character in set * Repeat: zero or more occurances of previous character or class 'FINDSTR /C:"hello there" x.y' searches for For example, 'FINDSTR "hello there" x.y' searches for "hello" or Use spaces to separate multiple search strings unless the argument is prefixed ![]() D:dir Search a semicolon delimited list of directories ![]() G:file Gets search strings from the specified file(/ stands for console). C:string Uses specified string as a literal search string. F:file Reads file list from the specified file(/ stands for console). A:attr Specifies color attribute with two hex digits. OFF Do not skip files with offline attribute set. P Skip files with non-printable characters. O Prints character offset before each matching line. M Prints only the filename if a file contains a match. N Prints the line number before each line that matches. ![]() V Prints only lines that do not contain a match. I Specifies that the search is not to be case-sensitive. S Searches for matching files in the current directory and all R Uses search strings as regular expressions. E Matches pattern if at the end of a line. B Matches pattern if at the beginning of a line. FINDSTR is fairly powerful, supports regular expressions and has the advantages of being on all Windows machines already.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |