[X-Unix] Looking for lc(1) source code

Brian Medley bpm-list-osx-unix at 4321.tv
Wed Feb 20 21:56:18 PST 2008


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 " " -

-- 
Brian Medley


More information about the X-Unix mailing list