I am in the process of making a bash script to scrape a weather.com to get the weather report. I need to process a line of text that has an unusual character. Here is the text:
30°FHigh 35°High 52°High 45°High 43°High
There is a small circle between the numbers and the letters. Here is the code:
#!/bin/bash
clear
lynx --dump http://www.weather.com/weather/5-day/New+York+NY+10001 | \
egrep ' Today | Tonight ' -A 22 | awk 'BEGIN {print "\n\t\t\b\b\b\b\b\bTHE FIVE DAY\
WEATHER REPORT FOR THE NYC: 10001\n"} \
/[0-9][0-9]*[a-z|A-Z]+/{print $1"\t\t"$2" "$3"\t\t"$4" "$5"\n"}' 2>> error.txt
This gives no output.