I use the excellent UNIX command-line utility "comm" in an application that I developed on the BSD platform (OSX). When I deployed to my Linux server, I found that, unfortunately, the Ubuntu Linux utility 'comm' does not accept the -i flag to indicate that strings should be case insensitive. Apparently, the -i option is not required for the POSIX standard.
So ... I'm bound. I really need the -i option, which works so well on BSD. I went so far as to try to compile the BSD comm.c source code in a Linux box, but I got:
http://svn.freebsd.org/viewvc/base/user/luigi/ipfw3-head/usr.bin/comm/comm.c?view=markup&pathrev=200559
me@host:~$ gcc comm.c
comm.c: In function ‘getline’:
comm.c:195: warning: assignment makes pointer from integer without a cast
comm.c: In function ‘wcsicoll’:
comm.c:264: warning: assignment makes pointer from integer without a cast
comm.c:270: warning: assignment makes pointer from integer without a cast
/tmp/ccrvPbfz.o: In function `getline':
comm.c:(.text+0x421): undefined reference to `reallocf'
/tmp/ccrvPbfz.o: In function `wcsicoll':
comm.c:(.text+0x691): undefined reference to `reallocf'
comm.c:(.text+0x6ef): undefined reference to `reallocf'
collect2: ld returned 1 exit status
Does anyone have any suggestions on how to get a version of a command on Linux that supports 'comm -i'?
Thank!
source
share