SyntaxFix
Write A Post
Hire A Developer
Questions
You can do it easily with grep:
grep -oE '[^ ]+$' file
(-E use extended regex; -o output only the matched text instead of the full line)
-E
-o