Quick Tip #1: Implicit FIFOs in Bash
One could assume that I have run out of material and retreat to safer ground, but far from it. From now on I’ll just throw in a few quick shell hacks hoping some of you don’t know them yet. So, here it...
View ArticleQuick Tip #2: Set Operations Using Shell Tools
Everybody knows that Unix shell utilities are powerful. Even though they’re text-based, you can build a lot of useful things outside of the text domain. Today I’ll show you how to implement set...
View ArticleQuick Tip #3: Creating Histograms in Python
Since Python 2.5, creating histograms has become easier. Instead of dict, we can now use defaultdict which is similar in behavior to awk’s associative arrays. Instead of raising a KeyError for...
View ArticleQuick Tip #4: Sorting Large Files
With traditional Unix sort(1), the size of the files you can sort is limited by the amount of available main memory. As soon the file get larger and your system has to swap, performance degrades...
View ArticleQuick Tip #5: Navigating in Source Trees
I often move around in checked out Subversion or Git source trees on a Bash command line. Directory structures tend to get quite deep (especially in Java projects), so one problem keeps coming up...
View ArticleQuick Tip #6: Triggering Actions on File Close
Sometimes it’s useful to trigger an action after a file is closed. Suppose you started a lengthy download on your notebook and you want to suspend it as soon as the download is done. There are several...
View Article
More Pages to Explore .....