News for hackers. Stuff that matters.
Re:The Beauty of Unix Pipelines by JdeBP on Friday June 05, 2020 @04:48AM (#23426379)
Daniel J. Bernstein's little known http@ tool is just a shell script wrapped around tcpclient, and is fairly similar, except that it does not use the Bashisms of course:

    printf 'GET /%s HTTP/1.0\nHost: %s:%s\n\n' "${2-}" "${1-0}" "${3-80}" |
    /usr/local/bin/tcpclient -RHl0 -- "${1-0}" "${3-80}" sh -c '
    /usr/local/bin/addcr >&7
    exec /usr/local/bin/delcr <&6
    ' |
    awk '/^$/ { body=1; next } { if (body) print }'

There are no comments on this comment yet.