2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 15577
/ 3 Years ago, tue, november 2, 2021, 7:05:21
I have the following in one of my json file file1.json :-
{
"$quer": {
"args": [{
"args": [
"select
db1.table1 as tab1,
db1.table2 as tab2,
db1.table3 as tab3
from db1.table4 as tab4"
],
"fn": "from-sql",
"ns": "op"
}],
"fn": "operators",
"ns": "op"
}
}
I want to extract the string db1.table4
from this json file and store into a variable.
I don't know much about sed and awk. Can someone help here?
More From » command-line