% awk, string # Print last column echo '1 2 3' | awk '{print $NF}'