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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -