4 ms·sometimes (if there are not mixed spaces and tabs) tr -s ' ' < input | cut -f1 helpsby ptman 9y agosometimes (if there are not mixed spaces and tabs) tr -s ' ' < input | cut -f1 helps