FreeBSD Fortune on Nostr: Want to strip UTF-8 BOM(Byte Order Mark) from given files? sed -e ...
Want to strip UTF-8 BOM(Byte Order Mark) from given files?
sed -e '1s/^\xef\xbb\xbf//' < bomfile > newfile
Published at
2024-08-06 17:00:58Event JSON
{
"id": "f4411464c4974993676864b886b2ff6a74f82cc6525c684672d9682b843cd36e",
"pubkey": "49792b0c3e803bb97f4005f83a8d6c09a58c6ea7f04e1ab19d149f9fabbbcee3",
"created_at": 1722963658,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.bsd.cafe/users/fbfortune/statuses/112916146299479694",
"activitypub"
]
],
"content": "Want to strip UTF-8 BOM(Byte Order Mark) from given files?\n\n\tsed -e '1s/^\\xef\\xbb\\xbf//' \u003c bomfile \u003e newfile",
"sig": "ff38a2a4a1af880aed4b17ff6dfeeca65e78ec519e76ad95a989a6927fec61ee72d74ec69a48b994d6092d89db8b67582460a64bf7708a85b05e12382dfafe6c"
}