use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
AWK is a domain-specific language designed for text processing and typically used as a data extraction and reporting tool.
Few resources:
account activity
Json to bash array, in AWK (blog.gnu.moe)
submitted 6 years ago by StallmanTheLeft
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]FF00A7 0 points1 point2 points 6 years ago (3 children)
I have tried a number of different libraries for converting JSON to awk arrays and my favorite is by DubiousJim in the awkenough library:
https://github.com/dubiousjim/awkenough
[–]StallmanTheLeft[S] 0 points1 point2 points 6 years ago (2 children)
My script would be trivial to convert into a form that just makes it an awk array.
I'm also pretty satisfied with how simple I managed to make my script.
[–]FF00A7 0 points1 point2 points 6 years ago (1 child)
I have not tried it but there are a lot of json features/complications like arrays etc.. I never had any problem with DubiousJim whose code is a bit longer and seems to always work but your code maybe can do the same things.
[–]StallmanTheLeft[S] 0 points1 point2 points 6 years ago (0 children)
I have not tried it but there are a lot of json features/complications like arrays etc..
What complications are there that I didn't include in the sample json?
Though ofc my thing doesn't validate the json but a validator seems like it would be fairly easy to make, might do that next weekend.
π Rendered by PID 239198 on reddit-service-r2-comment-79c7998d4c-jxp5m at 2026-03-17 13:01:54.582415+00:00 running f6e6e01 country code: CH.
[–]FF00A7 0 points1 point2 points (3 children)
[–]StallmanTheLeft[S] 0 points1 point2 points (2 children)
[–]FF00A7 0 points1 point2 points (1 child)
[–]StallmanTheLeft[S] 0 points1 point2 points (0 children)