Created
November 19, 2022 15:11
-
-
Save webgtx/44732fd8e32335c49aeeddedc8bb9ee5 to your computer and use it in GitHub Desktop.
BASH - Way to read stdin
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
| while read line | |
| do | |
| echo "$line" | |
| done < "${1:-/dev/stdin}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment