fork download
  1. #!/usr/bin/env bash
  2.  
  3. sep=$'\t'
  4.  
  5. while read one \
  6. && read two \
  7. && read three \
  8. && read four
  9. do
  10. printf "%s\n" "$one$sep$two$sep$three$sep$four"
  11. done
Success #stdin #stdout 0s 4284KB
stdin
one
Two
Three
Four
Five
Six with spaces
Seven
Eight
Ignored because needs 4 rows
stdout
one	Two	Three	Four
Five	Six with spaces	Seven	Eight