Skip to content

Instantly share code, notes, and snippets.

@offlinemark
Created March 17, 2017 15:38
Show Gist options
  • Select an option

  • Save offlinemark/9279786996ea75c6ce3cd22831f80927 to your computer and use it in GitHub Desktop.

Select an option

Save offlinemark/9279786996ea75c6ce3cd22831f80927 to your computer and use it in GitHub Desktop.
suppress eof trick
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