m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2021-03-25 11:54:14 +0100
committerMarcin Chrzanowski <m@m-chrzan.xyz>2021-03-25 11:54:14 +0100
commitd4e8737175afe8f6c887384dff3253f0637f42ef (patch)
tree11940af26d005ca328c73467bc844f7c6171f52f
parentecb88b6d4a44bdaccdb1b83f66b1130fd7d16ea3 (diff)
Add sed backreferences
-rw-r--r--sed.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/sed.md b/sed.md
index e2cc9bd..3122058 100644
--- a/sed.md
+++ b/sed.md
@@ -7,3 +7,7 @@ Typical substitution:
Can do multiple:
sed -e 's/pattern/replacement/flags; s/bla/ble/'
+
+Back references require extended regexes:
+
+ sed -r -e 's/"(\w+)"/\1/'