diff options
author | chinsan <chinsan@FreeBSD.org> | 2006-10-09 04:11:34 +0000 |
---|---|---|
committer | chinsan <chinsan@FreeBSD.org> | 2006-10-09 04:11:34 +0000 |
commit | f0c87a1abaacca9a178cd32ca0cc808c8644c25d (patch) | |
tree | cc54eb7e4641ed54d99fb6895d59e6a714e9435f /games/fortune | |
parent | 376860d8b76d46be049756fdcc68aea0093aeef4 (diff) | |
download | FreeBSD-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/fortune')
-rw-r--r-- | games/fortune/datfiles/freebsd-tips | 4 |
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 |