4/14/2007

I learnt something today

Text is different between Windows and Linux. To convert a window text file, use:
cat log.log | tr -d '\r' > new.log

I also learnt easy_install, which is a python module (easy_install) bundled with setuptools that lets you automatically download, build, install, and manage Python packages. To install an unziped file, use -Z, an upgraded file use -U. For example, to install a newer version of MySQLdb, type:
sudo easy_install -UZ MySQLdb-python

No comments: