The contents of the text files are as follows.
600466 a 37.50 25.28 600466 b 31.13 18.22 600466 c 64.80 61.39 600467 a 38.79 30.00 600467 b 28.73 41.04 600467 c 58.32 61.39 600468 a 33.09 25.28 600468 b 35.57 42.69 600468 c 58.32 60.12 600469 a 36.89 29.80 600469 b 35.57 30.94 600469 c 64.80 62.49 600470 b 37.35 35.02 * 600470 c 58.32 58.32 * 600471 a 29.22 25.47 600471 b 34.74 20.61 600471 c 64.80 62.81 600472 b 31.13 30.28* 600472 c 58.32 62.04 *
I checked a few lines with an asterisk.
You can get the first field of a row that is repeated 3 times (therefore, it appears exactly 3 times in a row), but some rows are not. I want to delete these lines with a few shell commands.
Does anyone have a fantasy?
(any correction of my poor English is appreciated. Thanks in advance)
source share