Tail takes the last few lines in a file, like so:
francisco$ tail -1 /etc/passwd testuser:*:1001:1001:test:/usr/home/testuser:/bin/ksh
This can also be achieve with sed and awk, but requires a bit more programming in them.