summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-12-01 23:10:17 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-12-01 23:10:17 +0300
commit965790f4f600790cf68a84ec052426abc39c69c8 (patch)
tree454d9178199469ffdd2466985f74821585363121
parent1be867e42ea4541133504a5fe5b566bd722d828b (diff)
downloadvsvs-965790f4f600790cf68a84ec052426abc39c69c8.tar
vsvs-965790f4f600790cf68a84ec052426abc39c69c8.tar.xz
vsvs-965790f4f600790cf68a84ec052426abc39c69c8.zip
.
-rw-r--r--vsvs.c0
-rw-r--r--vsvs.sh20
2 files changed, 20 insertions, 0 deletions
diff --git a/vsvs.c b/vsvs.c
deleted file mode 100644
index e69de29..0000000
--- a/vsvs.c
+++ /dev/null
diff --git a/vsvs.sh b/vsvs.sh
new file mode 100644
index 0000000..f3ca70d
--- /dev/null
+++ b/vsvs.sh
@@ -0,0 +1,20 @@
+res=""
+met=false
+while read line
+do
+ value=$(echo -n "$line" | sed 's/ .*//')
+ if [ "${line:0:1}" == " " ]
+ then
+ if [ $met == true ]
+ then
+ res="$res\n$value"
+ fi
+ else
+ if [ $(echo -n "$line" | sed 's/[^ ]* //') == $1 ]
+ then
+ met=true
+ res=value
+ fi
+ fi
+done
+echo -n $res