OSX grep (or sed? awk?) to find/replace non-ASCII hex values
Posted on 2014-01-06
I need to use OSX shell script (bash is current shell, would rather not re-write for others, but could if needed) to find and replace specific non-ASCII hex values (specifically Unicode #65533) from text files.
This appears to work, but wonder if there is something more elegant.
grep `echo -e 's/\xEF\xBF\xBD//'` fileName.txt
Have not otherwise been able to get the hex understood by grep or found. Any ideas?