Skip to content
Advertisement

Tag: parsing

jq script file not getting the key/value pair

I would like to put all jq filters inside a text file and use the jq -L option to execute the filters. However, I can’t get this simple thing working. Inside my sample2.json file, I have: Inside my json2csv file, I have: When I do: The output is the whole sample.json file, like this: but I would expect the output

iwlist scan output format

I have to write a tool to get the encryption type out of a iwlist scan. I just can’t seem to find whether or not there’s a standard output. Googling it looks like people are posting slightly different formats, but I can’t tell if they just copy/pasted wrong or what. Specifically, in Encryption key: On, is On/Off frist letter always

Advertisement