Tag Archives: unix

pruning your tree

This is from a mailing list post I’ve just replied to. Since I had to look it up, it’s worth blogging. 🙂 It seems like a simple task. Find all the files in the current directory, excluding .svn directories. I’ve mocked up a simple layout. % find . . ./.svn ./.svn/README.txt ./README.txt ./src ./src/.svn ./src/.svn/foo.c […]


Like a lot of people, most of my Unix knowledge comes from an early reading of Advanced Programming in the UNIX Environment. This is an excellent tome on the interfaces provided by the kernel to programs on a Unix system. Unfortunately, it’s over 15 years old now, and things have moved on. Naturally, I haven’t […]

Locales That Work

As I mentioned before, I don’t like locales. But of course, the solution is blindingly obvious and had passed me by. Unicode Support on FreeBSD points out the correct solution, which avoids breaking ls. % export LANG=en_GB.UTF-8 LC_COLLATE=POSIX Marvellous. Now things can autodetect that I’d like UTF-8, please.