Created
April 10, 2021 21:39
-
-
Save nestarz/248871bc26f9bda6a0b47bb81cb23945 to your computer and use it in GitHub Desktop.
How to redirect stdin to file in bash
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
echo "$(</dev/stdin)" > myfile.txt | |
# terminate your input with ENTER + ctrl-d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment