From 1c9ba130efdb94de69c9ac50926f64a0b9984fb6 Mon Sep 17 00:00:00 2001 From: Jefferson Julio Date: Sun, 15 May 2022 22:07:59 -0300 Subject: Creation of convenience scripts on utils/ directory for use on rest-run request data creation. --- utils/rr-math | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 utils/rr-math (limited to 'utils/rr-math') diff --git a/utils/rr-math b/utils/rr-math new file mode 100755 index 0000000..8da0a64 --- /dev/null +++ b/utils/rr-math @@ -0,0 +1,12 @@ +#!/bin/bash + +MATH_ARG="$@" + +if [ -z "$MATH_ARG" ]; then + while read inpt; do + MATH_ARG="$inpt" + break + done +fi + +eval -- perl -e \'print\("$MATH_ARG"\)\' -- cgit v1.2.3