Posts

Showing posts from January 26, 2019

How to combine strings from JSON values, keeping only part of the string?

Image
up vote 2 down vote favorite I have sample: "name": "The title of website", "sync_transaction_version": "1", "type": "url", "url": "https://url_of_website" I want to get the following output: "The title of website" url_of_website I need to remove the protocol prefix from the URL, so that only url_of_website is left (and no http in the front). Problem is I'm not quite familiar with sed reading multiple lines, doing some research reach me https://unix.stackexchange.com/a/337399/256195, still can't produce the result. A valid json object that I'm trying to parse is Bookmark of google chrome , sample: { "checksum": "9e44bb7b76d8c39c45420dd2158a4521&q