KORAY - IT system consulting

Friday, January 9, 2009

Extracting text with sed

Download stock ticker from stockcharts.com

wget http://stockcharts.com/charts/catalog/Aa.html

Extract the ticker with the following command.

sed -n 's/.*A HREF=".*c=\([^"]*\),p".*/\1/p' Aa.html > Aa.txt
Posted by Koray Güclü at 4:49 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

LinkWithin

Related Posts Plugin for WordPress, Blogger...

Blog Archive

  • ►  2014 (5)
    • ►  August (1)
    • ►  July (1)
    • ►  March (2)
    • ►  February (1)
  • ►  2013 (16)
    • ►  December (1)
    • ►  November (4)
    • ►  October (5)
    • ►  July (1)
    • ►  June (2)
    • ►  May (2)
    • ►  April (1)
  • ►  2012 (7)
    • ►  December (3)
    • ►  November (1)
    • ►  October (2)
    • ►  July (1)
  • ►  2011 (5)
    • ►  December (1)
    • ►  July (3)
    • ►  March (1)
  • ►  2010 (7)
    • ►  September (3)
    • ►  July (1)
    • ►  June (1)
    • ►  February (1)
    • ►  January (1)
  • ▼  2009 (9)
    • ►  November (1)
    • ►  September (2)
    • ►  June (1)
    • ►  April (1)
    • ►  February (2)
    • ▼  January (2)
      • Your development environment on windows with ubuntu
      • Extracting text with sed
  • ►  2008 (14)
    • ►  December (1)
    • ►  November (1)
    • ►  August (3)
    • ►  July (6)
    • ►  April (3)
Simple theme. Powered by Blogger.