Skip to content

Instantly share code, notes, and snippets.

@kseistrup
Created Nov 28, 2019
Embed
What would you like to do?
# run this script with a shell other than fish (bash, ksh, yash, …)
printf 'A B\tC D\t\tE \tF\t G \t \t H I\n' \
| while read A B C D E F G REST
do
printf 'A="%s"\n' "$A"
printf 'B="%s"\n' "$B"
printf 'C="%s"\n' "$C"
printf 'D="%s"\n' "$D"
printf 'E="%s"\n' "$E"
printf 'F="%s"\n' "$F"
printf 'G="%s"\n' "$G"
printf 'REST="%s"\n' "$REST"
done
# eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment