I have one line of different words stored in a txt file
N/A 9.0 Yes Yes N/A N/A N/A N/A 8.8 Yes Yes N/A N/A N/A N/A 8.7 Yes Yes N/A N/A N/A N/A 9.2 Yes Yes Yes Yes Yes Yes 9.1 Yes Yes Yes Yes Yes Yes 9.0 Yes Yes Yes Yes Yes Yes 8.8 Yes Yes Yes Yes Yes Yes 8.7 Yes Yes Yes Yes Yes Yes 22.04 Yes Yes Yes Yes Yes Yes AKS Microsoft Azure v1.27 EKS Amazon v1.27 Amazon Linux 2 is certified
I want to capture the part after "Azure" until the first whitespace - that is the version number without the "v".
My (gnu) sed command is as follows
cat out.txt | sed -E "s/.*Azure\s+v(.*?)\s+.*/\1/"
In regex101 it works as it should, but in my terminal output I get this
1.27 EKS Amazon v1.27 Amazon Linux 2 is
It looks that the rest of the line after the the version number, up to "certified", is not consumed.
What am I missing? Thank you.