You may think the unix command line tools are a stodgy lot, not changing much and certainly not since as recently as Fedora Core 3.

You'd be wrong.

Take "find", for instance. In Red Hat 9, and even up to Fedora Core 3, you could 'find' a bunch of files in all subdirectories of the current directory, say all files ending in "~" (backups from emacs), and then erase them, like so:

find -name "*~" -exec rm -f {} \;

This is cumbersome in two ways. First, it's long. After the files are identified, with "*~", it's 17 characters, or 5 "words". Secondly, this is an awkward way to show someone a new command. You have to explain the whole "-exec" thing. What's the pair of braces? Why the "\;"?

read more