Monday, June 2nd, 2008 10:49 PM
This command fetches a web page, converts it to text and shows it.
lynx -dump http://www.example.com/
No Comments »
Thursday, October 18th, 2007 10:59 PM
This one command will fetch and display the latest sensex figure in Linux. This command basically downloads a page, locates a specific line, and then extract just the necessary portion from it. I am sure you could find other uses for this method.
curl -s "http://money.rediff.com/money/jsp/markets_home.jsp" |grep ''|head -n1|perl -pe 's/^.+\">([\d\,\.]+)<\/TD>.+$/\1/i;'
No Comments »
|