Removing special characters with sed
Using sed to remove special characters like – (HEX: 96):
sed 's/\x96/-/' -i file.txt
- The
-i
flag will modify the file in place, when testing sed commands don't use it!
Written by Felipe Brandão
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#