~charles/dotfiles

ebb6e342952a020726ac9c63e132639e84eb220e — Charles Daniels a month ago 0f4d519
Add awc
1 files changed, 9 insertions(+), 0 deletions(-)

A overlay/bin/awc
A overlay/bin/awc => overlay/bin/awc +9 -0
@@ 0,0 1,9 @@
#!/bin/sh

# awc - "AWk Calculator"
#
# This is intended to be more convenient than using bc (because no setting
# precision), and than opening python (no waiting for the interpreter to open,
# then having to close it).

awk "$(printf "%s %s %s" 'BEGIN{print(' "$(echo "$@" |tr -d '\n' )" ')}')" < /dev/null