Tapez le texte dans une chaîne entre guillemets, puis dirigez-la vers Select-String.
Type the text in a quoted string, and then pipe it to Select-String.
Lors de la correspondance d'expressions, Select-String utilise la culture actuelle définie pour le système.
When matching phrases, Select-String uses the current that is set for the system.
Sans ce paramètre, Select-String recherche uniquement la première correspondance dans chaque ligne de texte.
Without this parameter, Select-String finds only the first match in each line of text.
Select-String peut afficher toutes les correspondances de texte ou s'arrêter après la première correspondance dans chaque fichier d'entrée.
Select-String can display all of the text matches or stop after the first match in each input file.
Select-String utilise la correspondance d'expression régulière, mais elle peut également exécuter une correspondance simple qui recherche l'entrée du texte que vous spécifiez.
Select-String uses regular expression matching, but it can also perform a simple match that searches the input for the text that you specify.
Par défaut, Select-String recherche la première correspondance dans chaque ligne et, pour chaque correspondance, elle affiche le nom de fichier, le numéro de ligne et tout le texte de la ligne contenant la correspondance.
By default, Select-String finds the first match in each line and, for each match, it displays the file name, line number, and all text in the line containing the match.
La deuxième commande utilise un opérateur de pipeline (|) pour envoyer les objets de la variable $events à l'applet de commande Select-String.
The second command uses a pipeline operator (|) to send the objects in the $events variable to Select-String.
Vous pouvez également spécifier que Select-String doit attendre un encodage de caractères particulier, comme lorsque vous recherchez des fichiers de texte Unicode.
You can also specify that Select-String should expect a particular character encoding, such as when you are searching files of Unicode text.
Par défaut, Select-String interprète la valeur du paramètre Pattern en tant qu'expression régulière.
By default, Select-String interprets the value of the Pattern parameter as a regular expression.
Dans une correspondance simple, Select-String recherche l'entrée de texte dans le paramètre Pattern.
In a simple match, Select-String searches the input for the text in the Pattern parameter.
Pour utiliser Select-String, tapez le texte à rechercher comme valeur du paramètre Pattern.
To use Select-String, type the text that you want to find as the value of the Pattern parameter.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.