slitaz-base-files view rootfs/usr/bin/calc @ rev 105

Add /usr/lib/slitaz/httphelper since Busybox removed upstream and we intensivly use it in SliTaz
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 17 14:09:13 2012 +0100 (2012-03-17)
parents 9acf8ee770e5
children 793c2b7ed97f
line source
1 #!/bin/sh
2 #
3 # Small cmdline AWK calculator.
4 # Copyright (C) 2012 SliTaz GNU/Linux.
5 #
7 case "$1" in
8 *[0-9]*)
9 awk "BEGIN{ print $* }" ;;
10 *)
11 name=$(basename $0)
12 echo -e "\nUsage: $name [0-9][+-*/][0-9]"
13 echo -e "Example: $name 36*12\n" ;;
14 esac
15 exit 0