Linux introduction/fr: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 123: Line 123:
Le caractère « <tt>?</tt> » remplace (exactement) un caractère.
Le caractère « <tt>?</tt> » remplace (exactement) un caractère.


The text to be searched for can also be variable. For example, to look for
Le texte recherché peut également contenir des variables. Par exemple, pour rechercher le texte « No. 10 » ou « No. 11 », etc. avec n'importe quel nombre entre 10 et 29, on peut utiliser la commande :
the text "number 10 » or "number 11", etc. with any number between 10 and 29,
{{Commande|grep 'No. [1-2][0-9]' fichier}}
the following command can be used:
Le texte recherché doit être sous la forme d'une expression régulière. Pour en savoir plus sur les expressions régulières, consultez [http://www.cyberciti.biz/faq/grep-regular-expressions/ Cybercity où se trouve une liste très complète des expressions régulières.] <br />
{{Command|grep 'number [1-2][0-9]' file
}}
A regular expression must be used for the search text. To learn more about regular expressions,
look at the following sites:<br />
[http://www.cyberciti.biz/faq/grep-regular-expressions/ A very complete list of regular expressions] <br />
Bureaucrats, cc_docs_admin, cc_staff
2,224

edits

Navigation menu