printing - cURL awk { print } help -
i have in file:
<yweather:condition text="partly cloudy" code="29" temp="56" date="wed, 23 feb 2011 6:53 pm mst" />
i'm using code try , print "partly cloudy", although "partly" not getting printed.
grep "yweather:condition" ~/documents/weather.dat | awk '{ print $2 }' | awk 'begin { fs = "[\"]" } ; { print $2 } '
hopefully can explain how both words print. thanks!
cat ~/documents/weather.dat |awk 'begin { fs = "[\"]" } ; /yweather:condition/ { print $2 } '
replaces that
Comments
Post a Comment