Friday, 19 October 2012

watching news using awk

lynx -dump www.google.com | gawk 'BEGIN{IGNORECASE=1} {if(($0~/news/)&&($0~/http/)) {print $2}}' | xargs lynx -dump | sed -n '/Top Stories/,/References/p'

Daily News & Analysis
   See realtime coverage

[47]Suspension of Kingfisher licence on cards: DGCA officials


   Daily News & Analysis - <U+200E>2 hours ago<U+200E>

   Suspension of licence stares in the face of crisis-ridden Kingfisher
   Airline as it extended its lockout till October 23 and submitted a
   reply to aviation regulator DGCA's show-cause notice on the matter.
   Related[48] Kingfisher Airlines » [49]Aviation »
   [50]Kingfisher to stay grounded till NovemberThe Hindu
   [51]Suspension of Kingfisher licence on cards: OfficialsDeccan Herald
   In-depth:[52]How Mallya killed KingfisherTehelka
   [53]See all 70 sources »
   Related[54] Kingfisher Airlines » [55]Aviation »
   IBNLive
   See realtime coverage

[56]Digvijaya slams 'self-serving, ambitious' Kejriwal, says he has Hitler's
'streak'


   Hindustan Times - <U+200E>1 hour ago<U+200E>

   Arvind Kejriwal is a "self-serving ambitious megalomaniac" with a
   "streak" of Hitler, Congress general secretary Digvijaya Singh alleged
   on Friday in the sharpest attack on the activist.
   Related[57] Anna Hazare » [58]Arvind Kejriwal » [59]Sonia Gandhi »
   [60]Digvijay 'rattled' Congress' last resort: KejriwalDaily News &
   Analysis
   [61]Diggy's salvo: Should Kejriwal dignify him with a
   response?Firstpost
   Highly Cited:[62]Anna Hazare to expand his core teamIndian Express
   Wikipedia:[63]Arvind Kejriwal
   [64]See all 70 sources »
   Related[65] Anna Hazare » [66]Arvind Kejriwal » [67]Sonia Gandhi »
   IBNLive

No comments:

Post a Comment