![]() Can use multiple times.ĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:-f file : Takes patterns from file, one per line.ĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:-E : Treats pattern as an extended regular expression (ERE)ĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:-w : Match whole wordĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:-r : Search directory recursivelyĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:-o : Print only the matched parts of a matching line, with each such part on a separate output line.ĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:-A n : Prints searched line and n lines after the result.ĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:-B n : Prints searched line and n line before the result.ĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:-C n : Prints searched line and n lines after and before the result.ĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:ĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:-color : Print match in yellow. e is used to specify multiple expressions, like this:ĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:-c : This prints only count of the lines that match a patternĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:-i : Ignores case for matchingĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:-v : This prints out all the lines that do not match the patternĭ:\VS Projects\_temp\wingrep\bin\Debug\file.txt:-e exp : Specifies expression with this option. ![]() In that case, a default option of -h (display matched lines) is assumed. Minimum number of arguments is 2 - pattern and at least one filename. C n : Prints searched line and n lines after and before the result. B n : Prints searched line and n line before the result. A n : Prints searched line and n lines after the result. ![]() With each such part on a separate output line. o : Print only the matched parts of a matching line, f file : Takes patterns from file, one per line. e exp : Specifies expression with this option. v : This prints out all the lines that do not match the pattern n : Display the matched lines and their line numbers. h : Display the matched lines, but do not display the filenames. c : This prints only count of the lines that match a pattern
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |