How could I code this to extract just the subjects that appear twice? I originally thought each subject would appear twice, so I just wanted to use the awk 'NR % 2 == 0' command, but that is no longer the case and now I don't know where to start. Help is much appreciated!
Do the lines in your testfile actually begin with another slash? Because then $4 would be the /-delimited column with the usr1 and you would need /-delimited column 5.
On another note: do you need anything that appears at least 2 times, or exactly 2 times? Because the example code posted does the first.