conf/88712: [UPDATE] freebsd-tips: Add "how to strip UTF-8 BOM"
chinsan.tw at gmail.com
Sat Sep 23 22:10:26 PDT 2006
The following reply was made to PR conf/88712; it has been noted by GNATS.
From: chinsan <chinsan.tw at gmail.com>
To: "Pav Lucistnik" <pav at freebsd.org>
Cc: FreeBSD-gnats-submit at freebsd.org, bug-followup at freebsd.org
Subject: Re: conf/88712: [UPDATE] freebsd-tips: Add "how to strip UTF-8 BOM"
Date: Sun, 24 Sep 2006 13:02:01 +0800
> Typo? Byte Order Mark.
Oh, Sorry. It's a typo. :p
> Also, why -i flag, when you're not editing the file inplace?
> $ sed -i -s -e 's|a|b|' < foo > ooof
> sed: -i may not be used with stdin
Thanks for notice, the floowing is the modified patch:
sed -e '1s/^\xef\xbb\xbf//' < bomfile > newfile
Would you please take a review with it again?
More information about the freebsd-bugs