Print lines containing the same second field for more than 3 times in a text file
问题 Here is what I am doing. The text file is comma separated and has three field, and I want to extract all the line containing the same second field more than three times. Text file (filename is "text"): 11,keyword1,content1 4,keyword1,content3 5,keyword1,content2 6,keyword2,content5 6,keyword2,content5 7,keyword1,content4 8,keyword1,content2 1,keyword1,content2 My command is like below. cat the whole text file inside awk and grep with the second field of each line and count the number of the