Tag Archives: linux

Linux – Calculating relative dates

If you need to generate a relative date in a shell script the Linux date command will do the needful, though there are some platform differences you might need to be aware of Continue reading

Linux – Building libxml2 on Red Hat Enterprise Linux

The pre-configuration script for libxml2 does a pretty good job, but it doesn’t quite catch one missing dependency on RHEL 5 Continue reading

PHP – Building PHP 5.4 with IMAP on Red Hat Linux

Adding IMAP support to your PHP build on Red Hat Enterprise Linux can involve navigating some pretty obscure error messages, not to mention some pretty old-school builds Continue reading

Linux – Blinding Find

A little understanding of how find expressions work makes it easy to filter its output to exclude certain files and directories. Continue reading

Linux – Counting code lines with the Unix find command

Here we use the Unix find command in conjunction with cat and wc to get a picture of the number of code lines in a directory hierarchy. Continue reading

Linux – Finding distinct file types with the find command

An example of using the Unix find command to quickly check out the number of different file extensions in a directory tree. Continue reading

Python – Building on OS X

Since OS X comes with Python, if you need to build a specific version on your Mac the required bits are likely to be there already. Running “make test” might reveal a few unnoticed absences though. Continue reading

Python – Building Python 3.3 with LZMA on Linux and OS X

Python 3.3 supports LZMA compression, though you’ll need an LZMA implementation installed in order to use it. Continue reading