Created
February 7, 2012 07:30
-
-
Save nvie/1757965 to your computer and use it in GitHub Desktop.
Infinite stdin and xargs
This file contains 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
nvie@Turkish % cat numargs | |
#!/bin/sh | |
echo $# | |
nvie@Turkish % yes moo | xargs ./numargs | |
5000 | |
5000 | |
5000 | |
5000 | |
5000 | |
5000 | |
5000 | |
5000 | |
5000 | |
5000 | |
^C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment