Why Phobos is cool
Panke
tobias at pankrath.net
Wed Jul 8 07:39:03 UTC 2020
On Wednesday, 8 July 2020 at 03:53:55 UTC, Jordan Wilson wrote:
> Here's something I just did now that might be more relevant:
> echo 'import std; void main() {
> "bets.json".readText.parseJSON.toPrettyString.writeln; }' | dmd
> -run - | more
>
> I did this without looking up anything. Whereas before this
> echo/import std; into dmd -run trick, I would have opened up
> vim, and hoped that my previous command to pretty print was
> still in the history! (using python if I remember correctly).
>
> Jordan
Have a look at jq [1] and jqed. What's up with the bets? Writing
a betfair bot by any chance?
[1] https://stedolan.github.io/jq/
More information about the Digitalmars-d
mailing list