Linux introduction/fr: Difference between revisions

Jump to navigation Jump to search
Created page with "=== Rechercher dans un fichier === La commande <tt>grep</tt> permet de recherche une expression donnée dans un {{Commande|grep 'tata' fichier1}} ou plusieurs fichiers {{Com..."
(Created page with "=== Comparer deux fichiers === La commande <tt>diff</tt> permet de comparer deux fichiers : {{Commande|diff fichier1 fichier2}} L'option <tt>-y</tt> permet d'afficher les fic...")
(Created page with "=== Rechercher dans un fichier === La commande <tt>grep</tt> permet de recherche une expression donnée dans un {{Commande|grep 'tata' fichier1}} ou plusieurs fichiers {{Com...")
Line 115: Line 115:
L'option <tt>-y</tt> permet d'afficher les fichiers côte à côte.
L'option <tt>-y</tt> permet d'afficher les fichiers côte à côte.


=== Searching within a file ===
=== Rechercher dans un fichier ===  
The <tt>grep</tt> command allows you to look for a given expression in one
La commande <tt>grep</tt> permet de recherche une expression donnée dans un
{{Command|grep 'tata' file1}}
{{Commande|grep 'tata' fichier1}}
or multiple files.
ou plusieurs fichiers
{{Command|grep 'tata' fil*}}.
{{Commande|grep 'tata' fich*}}.
Note that, in Linux, the "<tt>*</tt>" wildcard matches zero or more characters. The "<tt>?</tt>" wilcard matches exactly one character.
Notez que, sous Linux, le caractère « <tt>*</tt> » permet de remplacer aucun, un, ou une série de caractères. TRANSLATOR'S NOTE should be clearer if "zéro" here means "aucun caractère"/nil/null
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
The text to be searched for can also be variable. For example, to look for
rsnt_translations
53,770

edits

Navigation menu