Linux: Get internet content from command line using wget

PHOTO EMBED

Mon Aug 29 2022 16:20:46 GMT+0000 (Coordinated Universal Time)

Saved by @marcopinero #bash

wget -U "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" -qO - "https://example.com"

# Example
# wget -U "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" -qO - "https://www.infodolar.com.do/precio-dolar-entidad-banco-popular.aspx" | grep colCompraVenta | grep -Eo "([0-9.]+)" | head -1
content_copyCOPY

This bash script gets internet content from command line