I need to know all IP range (ip_prefix), associated with us-west-2 region only from this link - https://ip-ranges.amazonaws.com/ip-ranges.json (it can be opened in wordpad for better visibility)
Please suggest, how would I do it. If vi, awk or sed is needed, I have downloaded it on my linux server.
With 470 posts in these forums over the last 7 1/2 years, we'd expect that you at least have an idea of how to approach that problem. Would you mind to share this with us?
If we look at the example 5 and 6 in the documentation, it is quite close to your requirement.
You do not need to pipe the json parser output to additional shell commands to parse, it should be able to parse JSON format as you wish.
See if this is what you want..
I was referring to Example 5 and 6 when using jq tool, lower in the documentation, under Linux header.
Be sure to read the documentation carefully and hit specific section which apply to your environment.