How can I print the duplicates in a file only once?
I have an input file that contains:
123,apple,orange
123,pineapple,strawberry
543,grapes,orange
790,strawberry,apple
870,peach,grape
543,almond,tomato
123,orange,apple
i want the output to be: The following numbers are repeated: 123 543
is there a way to get this output using awk; i'm writing the script in
solaris , bash
No comments:
Post a Comment