I have some old code from 2003 which uses -t
option for uniq
command. It throws an error since that option is probably not supported anymore.
Here's the piece which uses the command:
egrep -n "{ IA32_OP" ia32-decode.c | \
awk '{ print $1 $3 $4 }' | \
sort -t '(' +1 | \
uniq -t ':' -f 1 | \
sed 's/\(.*\)\:IA32_OP(\(.*\)),/#define IA32_OP_\2 \1/g' >> ia32_opcodes.h
What did that option do back then? What can I substitute that command with?
man uniq
,-f 1
avoids comparing the first field. I'd infer from-t ':'
that-t
is supposed to change the field seperator from blanks to:
. – Martin von Wittich Feb 01 '14 at 14:28-t
was a Debian-specific option that was later removed? – Martin von Wittich Feb 01 '14 at 14:31uniq
didn't have the same-t
and-k
as sort or why sort didn't have all the features ofuniq
incorporated (since it now has-u
). Those-w
/-f
/-s
from GNU uniq don't make sense. Why couldn't they use the same syntax assort
. – Stéphane Chazelas Feb 01 '14 at 15:57-t
in textutils 2.0-3 in Debian woody – Stéphane Chazelas Feb 01 '14 at 16:12