cut

delimiter and field
echo php71u.x86_64 | cut -d. -f1
php71u
several fields
cut -d ' ' -f1-3 /proc/loadavg
0.85 0.97 0.93