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
More Related Contents:
- How to check if a string contains a substring in Bash
- How to compare strings in Bash
- How to use sed/grep to extract text between two words?
- How to trim whitespace from a Bash variable?
- Getting “command not found” error while comparing two strings in Bash
- How do I use variables in single quoted strings?
- How to get a variable value if variable name is stored as string?
- Extract substring in Bash
- In Bash, how can I check if a string begins with some value?
- How do I remove the file suffix and path portion from a path string in Bash?
- Test whether string is a valid integer
- How to test if string exists in file with Bash?
- Bash doesn’t parse quotes when converting a string to arguments
- Replacing some characters in a string with another character
- Bash: Split string into character array
- How to return a string value from a Bash function
- Multi-line string with extra space (preserved indentation)
- Extract part of a string using bash/cut/split
- How can I compare a string to multiple correct values in Bash?
- Shell script – remove first and last quote (“) from a variable
- How to echo “$x_$y” in Bash script?
- Convert specified column in a multi-line string into single comma-separated line
- bash : Bad Substitution
- Bash: manipulating with strings (percent sign)
- Test for empty string with X”” [duplicate]
- Split bash string by newline characters
- How can I convert a string to upper- or lower-case with XSLT?
- Load R package from character string
- Replace whole line containing a string using Sed
- Integer PadLeft function in T-SQL