[X-Unix] Looking for lc(1) source code
Robar Philip
philip.robar at gmail.com
Fri Feb 22 19:21:13 PST 2008
On Feb 22, 2008, at 6:38 PM, Alexandre Gauthier wrote:
> 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?
[snip]
>>> Thanks for the various suggestions, but none of them does what
>>> lc(1) does. I finally found the source at an HP site. (After
>>> giving up on Google and trying MS Live's search.)
>>>
>>
> Do you mind sharing a link?
> Thanks :)
It's actually not an HP site, it's an HP users ported source site:
http://hpux.cs.utah.edu/hppd/hpux/Users/lc-1.26/
I didn't keep notes when I built it, but it's build process uses Imake
(Which brought back nightmares from my days in the Windows group at
Sun.) so you'll need to have X installed. Then you'll need to get rid
of the HPUX define. I also spent some time bringing it into the 21st
century by removing a whole bunch of ifdef's in favor of assuming
things like ANSI C, POSIX, and Single UNIX Spec V3. There's a bunch
more code that could be removed if the author had bothered to document
things a little better.
In other words you'll need to know at least a little about C and UNIX
to get it to work.
Phil
More information about the X-Unix
mailing list