cut cannot extract the last field only, AFAIK.
| rev | cut -d\ -f1 | rev
Yeah, typical “how would you append to the linked list” interview answer :-P
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.