I have a file which has a few duplicate lines. I would only like to print the duplicates, but I'm having a hard time thinking about how to accomplish this task. I was thinking of using a for loop, but I can't seem to get it to work. I am open to using a shell script, awk, or perl. Any help would be greatly appreciated.
Thanks,
John
Thanks,
John