What's This?
This is the techie corner of the website. New items will appear here as we have time to put them online, so check back occasionally!
Everything here is provided as-is, with no warranty of any kind. Have fun...
Tools For Gentoo Linux
The lc(1) command line tool
Each time I move to a new Unix or Linux system, one of the first things I build and place into $HOME/bin is a port of the old-time lc(1) tool. The program is an alternative to ls(1), and will list the contents of a directory sorted into categories (file, directory, link, etc.) The tool originated within MFCF at the University of Waterloo, but I became familiar with it as part of MKS Toolkit.
The original MFCF code can be found on the Internet, if you look hard enough. I've archived a copy here:
Portage ebuild for Gentoo -- lc(1)
A port of lc(1) is part of the FreeBSD ports collection, and this was the inspiration for creating a Portage ebuild.
I've done basically nothing to the code, but can contribute the ebuild for use with Gentoo Linux. It makes adding lc(1) to a Gentoo system very easy.
NOTE: I've removed the link for the moment. I need to update my downloads directory and the ebuild contents.
Fun Stuff
A friend came to me with a quick challenge: He needed a quick-and-dirty way to shuffle the lines in a text file. "Have you got a one-liner that can randomly re-order the lines?" What I came up with isn't a one-liner, but it's pretty simple: