Outils pour utilisateurs

Outils du site


tech:notes_sed_grep_regex

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_sed_grep_regex [2025/04/24 16:29] Jean-Baptistetech:notes_sed_grep_regex [2025/12/15 16:21] (Version actuelle) Jean-Baptiste
Ligne 7: Ligne 7:
  
 Voir : Voir :
 +* `man regex`
 * [[grep avec option p comme AIX - Récupérer un paragraphe complet]] * [[grep avec option p comme AIX - Récupérer un paragraphe complet]]
  
 +Voir aussi : 
 +* pcregrep
  
 ## Regex ## Regex
Ligne 17: Ligne 19:
 ^((?!motif).)*$ ^((?!motif).)*$
 ~~~ ~~~
 +
 +
 +Grepper sur plusieurs lignes (match grep with line break)
 +~~~bash
 +grep -zP '\S{64}\n\S{64}'
 +~~~
 +
  
 ### Extended regular expressions ### Extended regular expressions
Ligne 37: Ligne 46:
     becomes ‘(abc*)\1’ when using extended regular expressions. Backreferences must still be escaped when using extended regular expressions.      becomes ‘(abc*)\1’ when using extended regular expressions. Backreferences must still be escaped when using extended regular expressions. 
 ~~~ ~~~
 +
 +Trouver des tabulations dans un fichier (GNU grep) you can use the Perl-style regexp
 +~~~bash
 +grep -P '\t' *
 +~~~
 +
  
 ### Pb  ### Pb 
tech/notes_sed_grep_regex.1745504950.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki