cut
Examples
First field
echo foo bar | cut -f 1
Returns 'foo'
First field and everything behind it
echo foo bar | cut -d " " -f 1-
Returns 'foo'
Second field
echo foo bar | cut -d " " -f 2
Returns 'bar'
Second field only if delimiter exists
echo foo | cut -d " " -s -f 2
Returns ''