Hello. I have a txt file like below. I would like to grab the first two names of the first columns from each group (0, 1, 2, 3...), so that it would look like the output table below. I believe I could use awk and head -n, but I am not sure how to put it together. If it helps, I don't necessarily need to know the group number, I just need the names in the output files. Any advice will be appreciated.
When you post homework and any kind of school-related problem directed by an instructor, we expect all users to declare they are posting homework first.