Command Line Magic on Nostr: If you have a large XML file that is all on one line and you need to make minor ...
If you have a large XML file that is all on one line and you need to make minor changes to it, many popular and even robust editors will choke on the line length, even with syntax highlighting turned off. One solution is to use a binary/hex editor like 'bvi':
bvi data.xml
Published at
2023-11-29 14:57:11Event JSON
{
"id": "d9474937cdf12c3ae28909d47bc416379679145ae6ce3dc03393b93943b03b10",
"pubkey": "f5f1075f3fad1755cef1ef9024d53eafd24ea460383319ffb9949f3b6a3cde1a",
"created_at": 1701269831,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/climagic/statuses/111494419633785191",
"activitypub"
]
],
"content": "If you have a large XML file that is all on one line and you need to make minor changes to it, many popular and even robust editors will choke on the line length, even with syntax highlighting turned off. One solution is to use a binary/hex editor like 'bvi':\n\nbvi data.xml",
"sig": "7093b6a73fde833de32802b5b1d307aa544b44362d66148a00cd0b69b8764cbb417b6c49cd3f43d9bbd09d2f9ce0f46b408a883623591f9ed68752d1e8794813"
}