Created
March 17, 2017 15:38
-
-
Save offlinemark/9279786996ea75c6ce3cd22831f80927 to your computer and use it in GitHub Desktop.
suppress eof trick
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
| if you want to pipe some data somewhere, but suppress the EOF at the end so you can still interactively type stuff in stdin, use cat | |
| cat file - | thing_that_reads_Stdin | |
| (echo "stuff" && cat) | thing_ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment