Shell Script help

view story

http://www.unix.com – Hi folks need some help with a scripts i need to read a file with 2 values , one label name and other port name file.txt R1 2001 R2 2002 R3 2004 and then open gnome-terminal with command gnome-terminal --tab -e "telnet locahost 2001" -t "R1" --tab -e "telnet locahost 2002" -t "R2" can someone guide me how to create a variable that can be passed to gnome-terminal ? it should read the file , keep adding the hosts to the variable , and then pass the variable to gnome-terminal thanx all (HowTos)