Date: Wed, 9 Nov 2005 18:34:13 +0800 (CST) From: chinsan <chinsan.tw@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: conf/88712: [UPDATE] freebsd-tips: Add "how to strip UTF-8 BOM" Message-ID: <200511091034.jA9AYDmN004595@chinsan.twbbs.org> Resent-Message-ID: <200511091040.jA9AeEOQ016589@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 88712 >Category: conf >Synopsis: [UPDATE] freebsd-tips: Add "how to strip UTF-8 BOM" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Nov 09 10:40:14 GMT 2005 >Closed-Date: >Last-Modified: >Originator: chinsan >Release: FreeBSD 6.0-STABLE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD chinsan.twbbs.org 6.0-STABLE FreeBSD 6.0-STABLE #3: Mon Nov 7 23:59:09 CST 2005 root@chinsan.twbbs.org:/usr/obj/usr/src/sys/TAKAKO i386 >Description: Add "how to strip UTF-8 BOM" >How-To-Repeat: >Fix: --- freebsd-tips begins here --- --- /usr/src/games/fortune/datfiles/freebsd-tips.orig Wed Nov 9 18:22:11 2005 +++ /usr/src/games/fortune/datfiles/freebsd-tips Wed Nov 9 18:25:57 2005 @@ -500,3 +500,7 @@ man -t grep > grep.ps # Save the PostScript version to a file or man -t printf | lp # Send the PostScript directly to printer +% +Want to strip UTF-8 BOM(Bye Order Mark) from given files? + + sed -i -s -e '1s/^\xef\xbb\xbf//' < bomfile > newfile --- freebsd-tips ends here --- >Release-Note: >Audit-Trail: >Unformatted:help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511091034.jA9AYDmN004595>
