From 8e84921a63d8f0a07227afe976e5bcb432bceb96 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 14 Sep 2024 00:01:38 +0100 Subject: [PATCH] [2l.sh]: Add 2l.sh --- 2l.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 2l.sh diff --git a/2l.sh b/2l.sh new file mode 100755 index 0000000..ef47bdd --- /dev/null +++ b/2l.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# Read the contents of the file flag.txt using only 2 letter commands + +while true; do + echo -n "$ " + read input + + if [ ${#input} -eq 2 ]; then + eval "$input" + else + echo "Command is not 2 characters!" + fi +done