How to parse this data

by Adrian Zhang   Last Updated September 22, 2018 04:01 AM

I have a file filled with data like this:

15-06-18 22:00 2968

Each entry is separated by a new line. I want to extract the last number (2968). How can I do this? (I am on Linux with bash).

Sorry if I don't have the right tags/am posting in the wrong place. I'm not sure where to place this question.



Related Questions


sed: Deleting a List of Paths from a Set of Files

Updated March 08, 2018 17:01 PM

Process plain text data

Updated May 16, 2018 06:01 AM

Find repeated words in a text

Updated February 24, 2017 18:01 PM