summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorchinsan <chinsan@FreeBSD.org>2006-10-09 04:11:34 +0000
committerchinsan <chinsan@FreeBSD.org>2006-10-09 04:11:34 +0000
commitf0c87a1abaacca9a178cd32ca0cc808c8644c25d (patch)
treecc54eb7e4641ed54d99fb6895d59e6a714e9435f /games
parent376860d8b76d46be049756fdcc68aea0093aeef4 (diff)
downloadFreeBSD-src-f0c87a1abaacca9a178cd32ca0cc808c8644c25d.zip
FreeBSD-src-f0c87a1abaacca9a178cd32ca0cc808c8644c25d.tar.gz
Add a tip on "how to strip UTF-8 BOM"
Approved by: delphij (mentor)
Diffstat (limited to 'games')
-rw-r--r--games/fortune/datfiles/freebsd-tips4
1 files changed, 4 insertions, 0 deletions
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 <topic>''. 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
OpenPOWER on IntegriCloud