Thursday, January 29, 2009

Your development environment on windows with ubuntu

You can download ubuntu server image from http://www.thoughtpolice.co.uk/vmware/
and download VM Plyer (you donot need VM server) http://www.vmware.com/download/player/download.html

start console setup to change the keyboard layout by using
sudo dpkg-reconfigure console-setup command

add a new user
sudo adduser

add the user to the sudoers file.
ALL=(ALL) ALL

remove system beeps
sudo rmmod pcspkr

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

LinkWithin

Related Posts Plugin for WordPress, Blogger...