dear Michael Fratoni, My example does not seem to be good. The first column is not every single digit, and the delimiter is usually not space but TAB.
Therefore, better example is the following. If the second column uniq is operated ----------- AAAA 10 387 BB 10 6 CCCCC 77777 5 ----------- the result should be ----------- AAAA 10 387 CCCCC 77777 5 ----------- (upper line is adopted) I can sort the specified column. sort -k 2 1.txt But I cannot uniq the specified column because GNU uniq does not support that feature. -w is for fixed length. -f is not enough to realize this. regards, -- Youichi Mano <[EMAIL PROTECTED]> -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list