Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

Unix

Unix v6

grep(1)



grep search a file for a pattern [ ] [ ] [ ] [ ] expression [ file ] ... searches the input files (standard input default) for lines matching the regular expression. Normally, each line found is copied to the standard output. If the flag is used, all lines but those matching are printed. If the flag is used, only a count of matching lines is printed. If the flag is used, each line is preceded its relative line number in the file. If the flag is used, each line is preceded by the block number on which it was found. This is sometimes useful in locating disk block numbers by context. In all cases the file name is shown if there is more than one input file. For a complete description of the regular expression, see ed (I). Care should be taken when using the characters $ * [ ^ | ( ) and \ in the regular expression as they are also meaningful to the Shell. It is generally necessary to enclose the entire argument in quotes. ed (I), sh (I) Lines are limited to 256 characters; longer lines are truncated.



grep(1)