Use parameter expansion, if the value is already stored in a variable.
$ str="GenFiltEff=7.092200e-01"
$ value=${str#*=}
Or use read
$ IFS="=" read name value <<< "GenFiltEff=7.092200e-01"
Either way,
$ echo $value
7.092200e-01
echo "GenFiltEff=7.092200e-01" | cut -d "=" -f2
This should work:
your_str='GenFiltEff=7.092200e-01'
echo $your_str | cut -d "=" -f2
${word:$(expr index "$word" "="):1}
that gets the 7
. Assuming you mean the entire rest of the string, just leave off the :1
.
Source: Stackoverflow.com