Skip to content

Instantly share code, notes, and snippets.

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