Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • awk 'END{print $NF}' file? Commented Nov 24, 2021 at 21:26
  • please edit and add more of your given sample input when you are talking about _repeated lines _, otherwise for the given input I would simply suggest to use awk 'NR%4==0 { print $NF }' infile Commented Nov 25, 2021 at 6:04