Translations:Linux introduction/25/en
Jump to navigation
Jump to search
Searching within a file
The grep
command allows you to look for a given expression in one file:
[name@server ~]$ grep 'tata' file1
... or in multiple files:
[name@server ~]$ grep 'tata' fil*
Note that, in Linux, the *
wildcard matches zero or more characters. The ?
wildcard matches exactly one character.