scalfmmExtractKey.sh 184 Bytes
Newer Older
Berenger Bramas's avatar
Berenger Bramas committed
1 2 3 4 5 6 7 8
#!/bin/bash

if [[ $# -ne 1 ]] ; then
    echo "You must pass a key as parameter"
    return
fi

input=$(cat)
Berenger Bramas's avatar
Berenger Bramas committed
9
res=`echo "$input" | grep "$1" | cut -d'=' -f2 | cut -d' ' -f2`
Berenger Bramas's avatar
Berenger Bramas committed
10
echo $res