# first_word()
# print the first word of a string
# https://overflow.adminforge.de/exchange/unix/questions/65932/#201744
# much faster than `awk`, `cut`, `sed` (when using the builtin)
while command -p -- test "${#}" -gt 0; do
  command -p -- printf -- '%s\n' "${1%% *}"
  shift 1
done
