# zsh fails this one echo -n 'bang ' echo 'geoff tty?? Aug 3 02:35' | sed -e 's/[ ].*//' -e '/!/s/^.*!//'