Comment

Comment by icefog

I like awk as a calculator:

    calc () { awk "BEGIN { print "$*" }" }

    $ calc "2^16"
    65536
    $ calc "2*16"
    32
    $ calc "2+16"
    18
parent icefog 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton