GithubHelp home page GithubHelp logo

jawk's People

Contributors

mohd-akram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jawk's Issues

what is keys() and o in this example code

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

expected <string> but got <EOF>

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:

  1. Why command failed just because of one blank line difference?
  2. Why need patch JSON.awk with patch-json-awk.diff?
  3. How can I use jawk with blank line json file?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.