print last field from line + alternative for awk

view story

http://unix.stackexchange.com – because technical reason on my solaris machine , I can't use awk in order to print the last field in line What the other alternative for awk , that print the last field from line (using cut or tr ...etc ) example1: /usr/bin/hostname machine1b /usr/bin/hostname | /usr/bin/sed 's/\(.\{1\}\)/\1 /g' | /usr/bin/awk '{print $NF}' b example2 echo 1 2 3 4 5 | /usr/bin/awk '{print $NF}' 5 (HowTos)