Karel Miklav wrote:
There's a tip in the FreeBSD fortunes database that says:
Want to strip UTF-8 BOM(Bye Order Mark) from given files?
sed -e '1s/^\xef\xbb\xbf//' bomfile newfile
FreeBSD's sed(1) doesn't support hexadecimal or octal
sequences. I think even gnu sed doesn't
There's a tip in the FreeBSD fortunes database that says:
Want to strip UTF-8 BOM(Bye Order Mark) from given files?
sed -e '1s/^\xef\xbb\xbf//' bomfile newfile
I can't make it work, and I can't find any other method to
work with hexa codes in scripts or on the command line so
I'm kind-a