From d9e4285a19f250dcbac946e8665b3701c8859f91 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Tue, 1 Dec 2020 23:12:51 +0300 Subject: . --- vsvs.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vsvs.sh b/vsvs.sh index f3ca70d..0c7ce88 100644 --- a/vsvs.sh +++ b/vsvs.sh @@ -2,19 +2,19 @@ res="" met=false while read line do - value=$(echo -n "$line" | sed 's/ .*//') + value="$(echo -n "$line" | sed 's/ .*//')" if [ "${line:0:1}" == " " ] then if [ $met == true ] then - res="$res\n$value" + res="${res}\n${value}" fi else - if [ $(echo -n "$line" | sed 's/[^ ]* //') == $1 ] + if [ "$(echo -n "${line}" | sed 's/[^ ]* //')" == "$1" ] then met=true - res=value + res="${value}" fi fi done -echo -n $res +echo -n "${res}" -- cgit v1.2.3