Created
February 6, 2020 08:44
-
-
Save richlv/bfa3cad39f35c3c1b7852e54238f058b to your computer and use it in GitHub Desktop.
This file contains 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
> bash --version | |
GNU bash, version 5.0.11(1)-release (x86_64-suse-linux-gnu) | |
Copyright (C) 2019 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software; you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. | |
> cat sc.sh | |
#!/bin/bash | |
cat <<EOF > heredoc.txt | |
"$@" | |
EOF | |
cat heredoc.txt | |
> ./sc.sh "a b" c | |
"a b c" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment