I have a file built from a grep output and it looks like this :
http://google.fr
Pierre google
http://test.fr
--
http://yahoo.com
Jean Yahoo
http://test.fr
--
I made a separator '--' for every 3 lines. I would like to assign every line to a variable, for example :
url= "http://google.fr"
name= "Pierre Google"
web= "http://test.fr"
So I made the bash script with IFS=-- and I have tried with the -d option for echo but i don't know how I could assign these 3 lines to a variable for every block.
Thanks for your help