diff options
Diffstat (limited to 'vsvs-get')
-rwxr-xr-x[-rw-r--r--] | vsvs-get | 25 |
1 files changed, 1 insertions, 24 deletions
@@ -1,25 +1,2 @@ #!/bin/bash -res="" -met=false -while IFS="" read str -do - if [ -z "${str##* *}" ] - then - key="${str%% *}" - val="${str#* }" - else - key="${str}" - val="" - fi - if [ -z "${key}" ] && [ $met == true ] - then - res="${res}"$'\n'"${val}" - elif [ "${key}" == "$1" ] - then - met=true - res="${val}" - else - met=false - fi -done -echo -n "${res}" +vsvs "if [ \"\${key}\" == \"$1\" ]; then res=\"\${buf}\"; fi" |