Last active
April 19, 2024 03:18
-
-
Save dbrock/7128016 to your computer and use it in GitHub Desktop.
Sometimes you need to use multiple heredocs in a single command. This is possible in Bash using process substitution.
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
#!/usr/bin/env bash | |
cat <<. | | |
1 | |
. | |
diff <<. - <(cat) | | |
2 | |
. | |
diff <<. - <(cat) | | |
3 | |
. | |
diff <<. - <(cat) | |
4 | |
. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm assuming this isn't possible with
dash
right?