i need a string checked for an Regex and the Match should be returned into a variable.
I read line by line through the data, and for that, i have some data i have to extract from that line. I checked that line for an value, if that is true, i need the regexp match as result back, to get stored in a value.
All this have to be done in a bash.
Is there a good approach for that ?