I need to replace all occurrences of the control character CTRL+A (SOH/ascii 1) in a text file in linux, how can this be achieved in SED?
Try:
sed 's/^A/foo/g' file
Use Ctrl+V+A to create the ^A sequence in the above command.
^A
1.4m articles
1.4m replys
5 comments
57.0k users