Apr 15, 2010 #1 unprophete Technical User Joined Apr 9, 2010 Messages 31 Location DE preffered ksh, GNU tools not available on the system. example input data: A1 A2 B3 B1 A2 A1 B1 B2 B3 B2 B2 B1 expected result: A1 A2 B1 B2 B1 B3 B2 B3
preffered ksh, GNU tools not available on the system. example input data: A1 A2 B3 B1 A2 A1 B1 B2 B3 B2 B2 B1 expected result: A1 A2 B1 B2 B1 B3 B2 B3
Apr 16, 2010 #2 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR awk '$1>$2{print $2,$1;next}{print $1,$2}' input | sort -u Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
awk '$1>$2{print $2,$1;next}{print $1,$2}' input | sort -u Hope This Helps, PH. FAQ219-2884 FAQ181-2886