On Feb 20, 2008, at 10:56 PM, Brian Medley wrote: > On Wed, Feb 20, 2008 at 05:14:07AM -0800, Robar Philip wrote: > >> lc(1) is an ls(1) like command which sorts by file type. (MKS >> Software >> ships a version with their UNIX toolkit.) I used to have the source >> for a >> free version can't find it now and I was unable to find it via >> Google. Does >> anyone out there have a pointer? > > Something like this might be helpful. The character in " " is a > tab. > > $ find . -maxdepth 1 -print0 | xargs -0 file -F " " -N | sort -k 2,2 > -t " " - Or in a pinch, this: function lc () { file * | sort -t: -k2 -b -f ;}