Outils pour utilisateurs

Outils du site


linux:sed (lu 53218 fois)

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édentes Révision précédente
Prochaine révision Les deux révisions suivantes
linux:sed [17-03-2014 15:38]
edmc73 [Suppression]
linux:sed [16-04-2014 09:54]
edmc73 [Regexp extended]
Ligne 129: Ligne 129:
 >Examples: >Examples:
 > >
->abc? +>abc? -> ‘abc\?’ when using extended regular expressions. It matches the literal string ‘abc?’.  
->becomes ‘abc\?’ when using extended regular expressions. It matches the literal string ‘abc?’.  +>c\+ - ‘c+’ when using extended regular expressions. It matches one or more ‘c’s.  
->c\+ +>a\{3,\} -> ‘a{3,}’ when using extended regular expressions. It matches three or more ‘a’s.  
->becomes ‘c+’ when using extended regular expressions. It matches one or more ‘c’s.  +>\(abc\)\{2,3\} -> ‘(abc){2,3}’ when using extended regular expressions. It matches either ‘abcabc’ or ‘abcabcabc’.  
->a\{3,\} +>\(abc*\)\1 -> ‘(abc*)\1’ when using extended regular expressions. Backreferences must still be escaped when using extended regular expressions.
->becomes ‘a{3,}’ when using extended regular expressions. It matches three or more ‘a’s.  +
->\(abc\)\{2,3\} +
->becomes ‘(abc){2,3}’ when using extended regular expressions. It matches either ‘abcabc’ or ‘abcabcabc’.  +
->\(abc*\)\1 +
->becomes ‘(abc*)\1’ when using extended regular expressions. Backreferences must still be escaped when using extended regular expressions.+
  
  
linux/sed.txt · Dernière modification: 04-10-2020 12:00 de edmc73