I have this in a file:
<yweather:condition text="Partly Cloudy" code="29" temp="56" date="Wed, 23 Feb 2011 6:53 pm MST" />
I’m using this code to try and print “Partly Cloudy”, although only “Partly” is not getting printed.
grep "yweather:condition" ~/Documents/weather.dat | awk '{ print $2 }' | awk 'BEGIN { FS = "[\"]" } ; { print $2 } '
Hopefully someone can explain how to get both words to print. Thanks!
Replaces all that