I have the following string:
"5  S comment=whatever Unspecific text fruit=apple animal=mouse sky=blue"
I need to move to end of the string, all that begin with comment to the word text.
The start is always be comment=  and the delimiter is always fruit. The value between comment=... and fruit delimiter is variable.
any suggestion?
comment=and/orfruitin that string? Do you need that process for every line of a file, or just in a string stored in a shell variable? Can that string contain newline characters?