7 ms·
Thanks for the advice; I should block some time to fully grok shell escapes. Even with single quotes, sed still requires escaping parentheses, + operators, and
by linkregister 10y ago
Thanks for the advice; I should block some time to fully grok shell escapes.
Even with single quotes, sed still requires escaping parentheses, + operators, and other operators that would otherwise be interpreted literally (but not all operators should be escaped). In the languages that I learned regexes this wasn't required.
- NathanOsullivan 10y agoThere's a command line switch -E for sed that gives you what we think of as "normal" regex escaping.
- linkregister 10y agoYou have saved me many hours of future command line hacking. Thanks!