From 811861643103e7bcaa9c576de6a18672607e12fc Mon Sep 17 00:00:00 2001 From: Chin-San Huang Date: Mon, 9 Oct 2006 04:11:34 +0000 Subject: [PATCH] Add a tip on "how to strip UTF-8 BOM" Approved by: delphij (mentor) --- games/fortune/datfiles/freebsd-tips | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/games/fortune/datfiles/freebsd-tips b/games/fortune/datfiles/freebsd-tips index c3fd33390882..8aae134e3708 100644 --- a/games/fortune/datfiles/freebsd-tips +++ b/games/fortune/datfiles/freebsd-tips @@ -499,3 +499,7 @@ of the man(1) utility: ``man -t ''. For example: 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(Byte Order Mark) from given files? + + sed -e '1s/^\xef\xbb\xbf//' < bomfile > newfile