atat-mirror/glue/jobctrl/calc

7 lines
139 B
Plaintext
Raw Permalink Normal View History

2023-08-31 20:30:18 +02:00
#!/bin/csh
if ( $#argv == 0 || x"$1" == "x-h" ) then
echo Syntax: calc \"mathematical expression\"
exit 1
endif
awk "BEGIN {print $*}"