Execute o seguinte comando em um diretório contendo html
files.
for f in *.html; do echo $(cat "$f" | sed -n '2p' | grep -o 'http://.*\.html') $(stat -c %y "$f"); done > References.tx
Script:
#!/usr/bin/bash
ref_file='References.txt';
> "$ref_file";
for html in *.html
do
mtime=$(stat -c %y "$html")
address=$(cat "$html" | sed -n '2p' | grep -o 'http://.*\.html')
echo "$address $mtime" >> $ref_file;
done