Berkeley CSUA MOTD:Entry 23590
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/12/25 [General] UID:1000 Activity:popular
12/25   

2002/1/18-19 [Health] UID:23590 Activity:nil
1/17    I'd like to have some script that just goes to http://www.cnn.com and
        yanks off the main headline (usually no more than 5 words or so).
        Is this doable? Thanks.
        \_ yes.
        \_ Here's a lame hack. May easily break at any time:
           lynx -source http://www.cnn.com | perl -ne \
             'm%cnnMainT1Headline"><a.*?>(.*)</a>% && print("$1\n") && exit;'
                                                                 -alexf
           \_ [new code re-posted after motd rollback]
           \_ curl -s http://www.cnn.com/|perl -lne \
                'print $1 if m,cnnMainT1Headline"><a[^>]+>([^<]+)<,'
              10 chars shorter --dbushong
2024/12/25 [General] UID:1000 Activity:popular
12/25   

You may also be interested in these entries...
2012/4/23-6/1 [Health/Disease/General, Health/Women] UID:54363 Activity:nil
4/16    "The K-E Diet: Brides-to-Be Using Feeding Tubes to Rapidly Shed Pounds"
        http://www.csua.org/u/w2x (gma.yahoo.com)
        I can't help noticing in the video:
        - how the doctor stayed standing up while examing this Jessica
          Schnaider sitting down,
        - how often he checked her heartbeat with his stethoscope, while
	...
Cache (387 bytes)
www.cnn.com/|perl
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please try the following: If you typed the page address in the Address bar, make sure that it is spelled correctly. Use the navigation bar on the left to find the link you are looking for. Enter a term in the search form below to look for information on CNN sites or the Internet.
Cache (1417 bytes)
www.cnn.com
EDT (09:38 GMT) May 2, 2004 32 Saudis: Gunmen worked at oil compound 33 Saudis: Gunmen worked at oil compound An explosive belt left by one of the attackers. The Saudi Interior Ministry says three of the four gunmen, who opened fire at a petrochemical compound, actually worked at the site. Saudi authorities also believe all four gunmen were on a list of 26 wanted militants released last year. Six people -- two Americans, two Britons, an Australian and a Saudi policeman -- died in the shooting. ET) CNNs Jeff Koinange returns to Rwanda 10 years after the horrific genocide that shocked the world. Underrated 105 Business News: 106 16,000 at Buffett meeting 107 Death of the supermarket? TIME 100 REPORT 108 More reports 109 Making a difference 110 Making a difference The world's influential people in business, art, politics, science HEAD-TO-TOE FLOW 111 Health News 112 Heart and Blood Health Library: 113 Heart and Blood Tips to lower blood pressure and have a healthy heart OFFBEAT IMAGES 114 The week in pictures 115 The week in pictures Dentally aware dog, flying pigs, hot tub baptism and more WEATHER Get your hometown weather on the home page! Zip Code: PERSONALIZE Or 116 select location from a list Quick Vote Do you work more hours than your parents did? Yes No 117 VIEW RESULTS VOTE From our Partners External site icon 118 Time: 119 Ashcroft's Barriers to Fighting Terror 120 A Solution at Fallujah?