Translations:Linux introduction/25/en

From Alliance Doc
Jump to navigation Jump to search

Searching within a file

The grep command allows you to look for a given expression in one file:

Question.png
[name@server ~]$ grep 'tata' file1

... or in multiple files:

Question.png
[name@server ~]$ grep 'tata' fil*

Note that, in Linux, the * wildcard matches zero or more characters. The ? wildcard matches exactly one character.