Need help sorting out some values with script
Posted: Saturday 19 November 2016 10:56
Hi
Anyone that can show me how to sort out below values from a text file?
"signalstrength":"30 % (4G)" ,"wanstatus":"CONNECTED"
I want to make a check of my mobile internet connection in our cottage.
I can get a file out from the 3/4G modem using curl, above information is in this file.
I want to place the signalstrenght and the wan status in two different variables.
Tried with awk and some other tools, totally gruel to me.
Anyone that can show me how to sort out below values from a text file?
"signalstrength":"30 % (4G)" ,"wanstatus":"CONNECTED"
I want to make a check of my mobile internet connection in our cottage.
I can get a file out from the 3/4G modem using curl, above information is in this file.
I want to place the signalstrenght and the wan status in two different variables.
Tried with awk and some other tools, totally gruel to me.