You need to escape the ^ with a \, i.e. s/\^A/^B/
. ^ denotes "start of line" in a regular expression. In the replacement text, escaping is not necessary, but possible.
Martin v. Löwis
2009-08-19 06:31:49
You need to escape the ^ with a \, i.e. s/\^A/^B/
. ^ denotes "start of line" in a regular expression. In the replacement text, escaping is not necessary, but possible.