Apologize if you feel this question very basic. Anyways, I am typing
sed '/[iI]t/ a\\
Found it!' data
but it says the error event not found.
I tried escaping that !
with backslash \!
but it doesn't work.
I don't understand when backslash \
can escape a character and use it literally then why doesn't it work in sed?
a//
bit for?echo blah | sed 'a\\<NL>!'
appends a!
without issue incsh
... (where<NL>
is a literal newline). – thrig Jul 20 '16 at 23:01