Created
December 26, 2021 13:37
-
-
Save ozcanyarimdunya/2d9dfec79420973510e650508ac5f121 to your computer and use it in GitHub Desktop.
Bash | read from pip
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
#!/bin/bash | |
:' | |
USAGE | |
----- | |
1) cat test.txt | ./pipe.sh | |
2) ./pipe.sh < test.txt | |
' | |
while read line; do | |
echo $line; | |
done |
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
a | |
b | |
c | |
d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment