You can do this by piping the text through awk
awk '{print $1}' input.txt
This prints out the first entry of every line (entries are separated with spaces).
You can do this by piping the text through awk
awk '{print $1}' input.txt
This prints out the first entry of every line (entries are separated with spaces).