xls2csv
will get your xls file into a CSV format.
Pipe that to sed
to remove the double-quotes.
Use while
to iterate over each line.
echo
each line (l
) to awk
to get the second ($2
) column into the $d
(for domain) variable.
Then send that to browser. You can replace lynx
with your favorite browser. A GUI browser will work as easily as a TUI one.
xls2csv domains.xls | sed -e's/"//g' | while read l; do d=`echo "$l" | awk '{print $2}'`; lynx "$d"; done