Heredoc Bash syntax with a redirection
Given that: cat << EOF > config.txt Setting1=value1 Setting2=value2 Setting3=value3 EOF I'm confused about the > config.txt cutting the heredoc syntax and why not: cat << EOF Setting1=value1 Setting2=value2 Setting3=value3 EOF > config.txt and how Bash behaves, as documentation of Heredoc will not explain this behaviour.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.