I am given an array of lines from a text file. They look similar to this, and will always be structured like this:
Full Tue Aug 27 10:59:43 2019 1
Incremental Tue Aug 27 11:16:41 2019 1
Incremental Tue Aug 27 11:25:28 2019 1
Incremental Tue Aug 27 13:37:29 2019 1
Based on the above output, I do not believe these 3 columns qualify as fixed width... as you can see the date format can and will probably change based on the date string, as well, line one contains 4 characters in column one row one, while the same column contains 11 in row's 2 through end...
How can I parse the date from these lines, so my list is this instead:
Tue Aug 27 10:59:43 2019
Tue Aug 27 11:16:41 2019
Tue Aug 27 11:25:28 2019
Tue Aug 27 13:37:29 2019
I am sure grep
or sed
is probably the answer I need, I just don't know much about either.