informatique:linux:grep
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| informatique:linux:grep [2018/09/06 17:10] – modification externe 127.0.0.1 | informatique:linux:grep [2023/06/02 10:13] (Version actuelle) – [Exemples] benoit | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| * {{grep-wiki.htm|grep}} | * {{grep-wiki.htm|grep}} | ||
| + | |||
| + | |||
| + | ==== Exemples ==== | ||
| + | |||
| + | Faire un grep sur une line et extraire les 6 caractères après le match | ||
| + | |||
| + | echo "toto titi:abcde tata" | grep -o ' | ||
| + | |||
| + | Resultat | ||
| + | |||
| + | titi:abcde | ||
| + | | ||
| + | |||
informatique/linux/grep.1536253850.txt.gz · Dernière modification : de 127.0.0.1
