12 lines
169 B
Bash
Executable File
12 lines
169 B
Bash
Executable File
[ -f functions.sh ] && source functions.sh
|
|
|
|
calculate() {
|
|
calc -- "$*" | tr -d '[:space:]'
|
|
}
|
|
|
|
name="$1"
|
|
shift
|
|
chan="$1"
|
|
shift
|
|
msg "$chan" "$name: $(calculate "$*")"
|