diff options
author | Marcin Chrzanowski <m@m-chrzan.xyz> | 2021-03-25 11:54:14 +0100 |
---|---|---|
committer | Marcin Chrzanowski <m@m-chrzan.xyz> | 2021-03-25 11:54:14 +0100 |
commit | d4e8737175afe8f6c887384dff3253f0637f42ef (patch) | |
tree | 11940af26d005ca328c73467bc844f7c6171f52f | |
parent | ecb88b6d4a44bdaccdb1b83f66b1130fd7d16ea3 (diff) |
Add sed backreferences
-rw-r--r-- | sed.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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/' |