Google
 

12/28/10

use grep

Recently I am using Mercurial to manage my Matlab codes. I need combine commands "hg" with "grep" to see which files are updated. Here is how it is working:

>> hg status | grep '\.m$'

The above command will give all the .m files without any other junks, such as "*.m~" and other image files.

12/23/10

Install python packages.

Python provides a easy solution to install packages and resolve package dependencies.


>> sudo easy_install simplejson 

This works very well!!!