atat-mirror/glue/jobctrl/calc

7 lines
139 B
Tcsh
Executable File

#!/bin/csh
if ( $#argv == 0 || x"$1" == "x-h" ) then
echo Syntax: calc \"mathematical expression\"
exit 1
endif
awk "BEGIN {print $*}"