From f0c87a1abaacca9a178cd32ca0cc808c8644c25d Mon Sep 17 00:00:00 2001 From: chinsan Date: Mon, 9 Oct 2006 04:11:34 +0000 Subject: 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(+) (limited to 'games') diff --git a/games/fortune/datfiles/freebsd-tips b/games/fortune/datfiles/freebsd-tips index c3fd333..8aae134 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 -- cgit v1.1