Comment

Comment by somat

    > Take for example this one-liner:
    > [program listing...]
    > In this condensed program of 4 lines, the following happens:
Right a "one" liner I see...

once it gets above roughly 100 characters you are no longer allowed to call it a "one liner"

and style note putting the pipe"|" at the end of the command instead of the beginning acts as a natural break and lets you avoid the backslash escaped newline nonsense.

    curl ... |
    jq ... |
    awk ....
vs

    curl ... \
    | jq ... \
    | awk ...
parent somat 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton