Dennis Williamson wrote: > while is a compound command. Only simple commands can have preceding > variable assignments. From man bash:
Thanks. I just found out that I can get away with > while IFS=$'\t' read a b; do echo "$a" "$b"; done
Dennis Williamson wrote: > while is a compound command. Only simple commands can have preceding > variable assignments. From man bash:
Thanks. I just found out that I can get away with > while IFS=$'\t' read a b; do echo "$a" "$b"; done