Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [jq]

A command line utility and programming language for manipulating JSON data, not to be confused with jQuery.

Filter by
Sorted by
Tagged with
3 votes
1 answer
277 views

Bash scripts to convert json to associative arrays and then back to json

I'm a relative bash novice but have found it along with jq a great way to manipulate json scraped from various sources. I couldn't find any ready-made scripts to convert arbitrarily deep json to bash ...
joeblog's user avatar
  • 243
1 vote
1 answer
83 views

VSCode-Portable Updater (MSYS2)

VSCode's portable mode doesn't support auto-updates, unlike its normal installer-based versions. I happen to use MSYS2's UCRT64 environment which makes the Linux tools I like play nice with the ...
404 Name Not Found's user avatar
5 votes
1 answer
112 views

Script to loop through a list of YouTube channels, and output metadata to a Markdown file

Overview I have created a bash script (triggered via GitHub Actions) that does the following: Parse a list of YouTube channel IDs and nicknames. Fetch their metadata via YouTube's Channel API. Build ...
Jake Lee's user avatar
  • 153
6 votes
2 answers
878 views

Extract data from api using shell scripting

So we have many vlans at work, often it is nice to see which ip ranges are associated with said vlan. We have a well developed api for displaying information about our network and thus I wrote a small ...
N3buchadnezzar's user avatar
4 votes
1 answer
95 views

Extracting domains and IPs from Exodus trackers JSON report

The following command series is used to gather every bit of valuable information from Exodus trackers. The ultimate goal would be to get this all into one jq ...
T145's user avatar
  • 3,099
5 votes
1 answer
233 views

Generating a domain and IP blacklist with Bash

This is a project to pull domain & IP blacklists from various sources and compile them into one list. There are some whitelists included that are applied when a blacklist is built. It draws ...
T145's user avatar
  • 3,099
4 votes
1 answer
59 views

The Blacklist -- Follow-Up 2: Electric Boogaloo

One of my main goals regarding this script has been to figure out a way to use the "adblock.sources" file available on its main repository and not my fork. That version has some syntax ...
T145's user avatar
  • 3,099
0 votes
1 answer
48 views

The Blacklist - follow-up

Follow-up from this question using @Toby Speight's answer: The primary concern is jq improvement/optimization, but please detail any others. ...
T145's user avatar
  • 3,099
4 votes
1 answer
145 views

Find download URL for a package, from almost-JSON with substitutions

I have an almost-JSON document in a file named versions.json. It looks like this: ...
kojiro's user avatar
  • 1,767
4 votes
1 answer
222 views

Code to fetch BitBucket repos

This actually works nicely (we have > 2k repos) but I would really like it to start producing results right away as soon as it has any. Mostly so it seems faster than it is (by being more responsive). ...
Christian Bongiorno's user avatar
6 votes
1 answer
74 views

Small app to show variables declared in a bash script

This code and updates are available on Github. I've written a small utility to dump the variables that are assigned in a bash script. Please note: This script depends on the shfmt and jq apps. I am ...
harleypig's user avatar
  • 217
4 votes
2 answers
90 views

Serial copying from disk images to folder in Bash

This is a Bash script that copies files stored inside disk images to a directory, using a defined structure provided via a JSON file. I've included the external programs it requires and the test I ...
logo_writer's user avatar
6 votes
1 answer
41k views

Replacing values in json file with jq

I have a JSON file like ...
kikulikov's user avatar
  • 213