Thanks and...
First of all...to those who have contributed code I've "borrowed", I am indebted. I love the customization options made possible by GT.
On that note: earlier in the string there is a script for current weather conditions and a forecast. (The code is copied below.)
Can someone with more knowledge of programming please explain to me how to insert a line break between the current conditions and forecast?
Also, if anyone has insight on adding a degree symbol after the temperature, I'd be very appreciative.
Best,
Proofrock
Borrowed Script below:
#!/bin/sh
normal='[0m'
bold='[1m'
italic='[3m'
underline='[4m'
boldOff='[22m'
italicOff='[23m'
underlineOff='[24m'
fgBlack='[30m'
fgRed='[31m'
fgGreen='[32m'
echo "Now | ${fgRed}\c"
curl --silent "http://weather.yahooapis.com/forecastrss?p=USVA0023&u=f" | grep -e "Forecast:" -A2 -B2 |tail -n 4 | grep -v orecast | sed -e 's/
//' -e 's/
//' | sed -n -E '2n;s/(.+)[ ]\-[ ](.)\..:[ ](0-9).:[ ](0-9+)/'"$normal"' Tomorrow | '"$fgRed "'\2, \3|\4 f'"$normal"'/;p' | tr '\n' ' '
First of all...to those who have contributed code I've "borrowed", I am indebted. I love the customization options made possible by GT.
On that note: earlier in the string there is a script for current weather conditions and a forecast. (The code is copied below.)
Can someone with more knowledge of programming please explain to me how to insert a line break between the current conditions and forecast?
Also, if anyone has insight on adding a degree symbol after the temperature, I'd be very appreciative.
Best,
Proofrock
Borrowed Script below:
#!/bin/sh
normal='[0m'
bold='[1m'
italic='[3m'
underline='[4m'
boldOff='[22m'
italicOff='[23m'
underlineOff='[24m'
fgBlack='[30m'
fgRed='[31m'
fgGreen='[32m'
echo "Now | ${fgRed}\c"
curl --silent "http://weather.yahooapis.com/forecastrss?p=USVA0023&u=f" | grep -e "Forecast:" -A2 -B2 |tail -n 4 | grep -v orecast | sed -e 's/
//' -e 's/
//' | sed -n -E '2n;s/(.+)[ ]\-[ ](.)\..:[ ](0-9).:[ ](0-9+)/'"$normal"' Tomorrow | '"$fgRed "'\2, \3|\4 f'"$normal"'/;p' | tr '\n' ' '