Вы имеете в виду что-то подобное?
wget_title_from_filelist.sh
#!/bin/bash
while read -r URL; do
echo -n "$URL --> "
wget -q -O - "$URL" | \
tr "\n" " " | \
sed 's|.*<title>\([^<]*\).*</head>.*|\1|;s|^\s*||;s|\s*$||'
echo
done
filelist.txt
https://stackoverflow.com
https://cnn.com
https://reddit.com
https://archive.org
Использование
./wget_title_from_filelist.sh < filelist.txt
Вывод
https://stackoverflow.com --> Stack Overflow - Where Developers Learn, Share, & Build Careers
https://cnn.com --> CNN International - Breaking News, US News, World News and Video
https://reddit.com --> reddit: the front page of the internet
https://archive.org --> Internet Archive: Digital Library of Free & Borrowable Books, Movies, Music & Wayback Machine
объяснение
tr "\n" " " # remove \n, create one line of input for sed
sed 's|.*<title>\([^<]*\).*</head>.*|\1|; # find <title> in <head>
s|^\s*||; # remove leading spaces
s|\s*$||' # remove trailing spaces