From 0eda4a2b0ee61c8d8e18df465596ffcefee30d12 Mon Sep 17 00:00:00 2001 From: kneutron <50146127+kneutron@users.noreply.github.com> Date: Wed, 7 Sep 2022 10:40:41 -0500 Subject: [PATCH] Delete logecho.mrg --- VIRTBOX/logecho.mrg | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 VIRTBOX/logecho.mrg diff --git a/VIRTBOX/logecho.mrg b/VIRTBOX/logecho.mrg deleted file mode 100644 index 6fd95cb..0000000 --- a/VIRTBOX/logecho.mrg +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# Echo something to current console AND log -# Can also handle piped input ( cmd |logecho ) -# Warning: Has trouble echoing '*' even when quoted. -function logecho () { - args=$@ - - if [ -z "$args" ]; then - args='tmp' - - while [ 1 ]; do - read -e -t2 args - - if [ -n "$args" ]; then - echo $args |tee -a $logfile; - else - break; - fi - done - - else - echo $args |tee -a $logfile; - fi -} # END FUNC