Add a tip on "how to strip UTF-8 BOM"
Approved by: delphij (mentor)
This commit is contained in:
parent
355938faba
commit
8118616431
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163144
@ -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
|
man -t grep > grep.ps # Save the PostScript version to a file
|
||||||
or
|
or
|
||||||
man -t printf | lp # Send the PostScript directly to printer
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user