Trying to get some results in parsing (with bash) something like this:
Code: Select all
"html_url": "https://github.com/whoamI/repo1",
"description": "null",
"fork": false,
--
"html_url": "https://github.com/whoamI/repo2",
"description": "blah",
"fork": true,
--
"html_url": "https://github.com/whoamI/repo3",
"description": null,
"fork": false,
--
"html_url": "https://github.com/whoamI/repo4",
"description": "null",
"fork": true,
--
What I would like the outcome to be is: (only from where : "fork": false,
):
Code: Select all
"html_url": "https://github.com/whoamI/repo1",
"html_url": "https://github.com/whoamI/repo3",
Tried some ways with a while read loop, but can't figure out how.