Use o argumento -dump
.
Exemplo de lynx em um script:
#!/bin/bash
buffer=$(lynx -dump "https://www.domain.com/script.php?")
copyright=$(echo "$buffer"|egrep Copyright)
phonenumber=$(echo "$buffer"|egrep "]Call.*Chat"|awk '{print }')
echo -e "This domain has this Copyright notice:\n$copyright"
echo "Phone contact is: $phonenumber"
A execução do script testado acima fornecerá esta saída:
$ ./script.sh
This domain has this Copyright notice:
© Copyright 2017 Domain.com. All rights reserved.
Phone contact is: 800-403-3568