Search Results

Search: Posts Made By: vinshas1
9,267
Posted By Chubler_XL
The normal practice would be to redirect to a...
The normal practice would be to redirect to a temporary file and then move the temp file over the original.

jq -c '.....' infile > /tmp/jqtemp.$$ && mv -f /tmp/jqtemp.$$ infile
9,267
Posted By Chubler_XL
It's not valid to have same key multiple times in...
It's not valid to have same key multiple times in the one record. Try running your input thru a JSON validator (https://jsonformatter.curiousconcept.com/)
9,267
Posted By Chubler_XL
After reading your request again it appears you...
After reading your request again it appears you want to identify an IP addresses in any non-array JSON data array and convert it to an array.

input :
{"adaptor" : "ip01" , "gateway" :...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 12:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy