Replacing Control Character in sed

Try:

sed 's/^A/foo/g' file

Use Ctrl+V+A to create the ^A sequence in the above command.

Leave a Comment