Date: Wed, 21 May 2008 09:13:48 +0200 From: Karel Miklav <karel@inetis.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Sed, shell and hexadecimal character codes Message-ID: <4833CBAC.801@inetis.com>
next in thread | raw e-mail | index | archive | help
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 depressed :) I help myself with xxd now, but if it is possible to avoid it, I'd like to hear about it. -- Regards, Karel Miklav
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4833CBAC.801>