pop.sh - remove last line from file and print it