Re: Sed, shell and hexadecimal character codes

2008-05-23 Thread Oliver Fromme
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

Sed, shell and hexadecimal character codes

2008-05-21 Thread Karel Miklav
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