Created
January 7, 2017 21:46
-
-
Save ScalaWilliam/e37d8141b662e61be91672039053e12f to your computer and use it in GitHub Desktop.
Interleave N streams line-by-line (doesn't close!)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN { | |
while(1) { | |
ch = 0 | |
while(++ch < ARGC) | |
if ( getline < ARGV[ch] ) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment