Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Not really. You can of course set up a (named) pipe and loop back your output (as in my answer here), but that has very little practical value in your case. I suggest you start by extracting the raw string (with \n replaced with newlines, etc) with curl ... | jq -r '.parse.wikitext["*"]' | .... You could also do many text manipulation with jq itself, which does have the internal "pipes" you're looking for in awk. Commented Jan 15, 2021 at 20:47
  • Please edit your question to contain a minimal, complete, verifiable example with concise, testable sample input and expected output. No links, no images. Commented Jan 15, 2021 at 23:31
  • If the answer I posted helped you then please see unix.stackexchange.com/help/someone-answers for what to do next. If there's anything about it you don't understand then please feel free to ask questions as comments under my answer. Commented Jan 18, 2021 at 15:03