I have a text file that contains:
toto.titi.any=val1 toto.tata.any=val2 toto.tete.any=val2
How to extract titi , tata
titi
tata
sed -n 's/^[^.]*.\([^.]*\)..*/\1/p' myfile.txt
display second value between dot from line having at least 2 dot inside