From 1c7856fd3aff5fd059f040262d9647f60a18e0c1 Mon Sep 17 00:00:00 2001 From: yctct Date: Thu, 6 Nov 2025 10:11:29 +0100 Subject: Add scripts and functions --- calculator.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 calculator.sh (limited to 'calculator.sh') diff --git a/calculator.sh b/calculator.sh new file mode 100755 index 0000000..f66726e --- /dev/null +++ b/calculator.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Calculator using bc +# Usage: +# $ c 3*5 +function c() { + printf "%s\n" "$@" | bc -l; +} -- cgit v1.2.3