Rev. wRy wrote: > sed "s#$name#\<a href=\"$site\"\>&\<\/a\>#" elist.txt > score.html Append to score.html using ">>" Somewhere at the top of the script you'll want to remove or null out score.html (so you don't keep on appending every time you run).