mohd-akram / jawk Goto Github PK
View Code? Open in Web Editor NEWAwk for JSON.
License: MIT License
Awk for JSON.
License: MIT License
can you explain what is keys()
and o
. Are they predefined.
$ echo '{"name":{"first":"Jason"},"age":25}' | jawk '{
keys(o); for (k in o) print k, _[o[k],JSON]
}'
name {"first":"Jason"}
age 25
Where can i find full documentation.
But this is amazing project. looking for something like this
How can i install in archlinux
This is the json file demo-blank-line.json content:
{
"node_name" : "test_node",
"log_valid_days" : 7
}
This is the jawk command line:
./jawk '{print _["log_valid_days"]}' demo-blank-line.json
and this is the command output:
demo-blank-line.json: expected <string> but got <EOF> (length 3) at input token 1
<<EOF>>
if I remove the blank line of demo-blank-line.json to make it look like this:
{
"node_name" : "test_node",
"log_valid_days" : 7
}
and run the same command line again, then it output:
7
My questions is:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.