How to get the last word from a line in Unix file?

echo “unix is good” | rev | cut -f1 -d’ ‘ | rev

Related Questions

Category: UNIX Interview Questions.