Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Bash redirections cheat sheet. Parent comment
Doing this:
"cat << EOL
line one
line two
EOL"
Would be the same as this:
"cat < file"
That is if 'file' contained this:
"line one
line two"
This doesn't work with the echo command because it does not use stdin like cat does.
There are no comments on this comment yet.
Doing this:
"cat << EOL
line one
line two
EOL"
Would be the same as this:
"cat < file"
That is if 'file' contained this:
"line one
line two"
This doesn't work with the echo command because it does not use stdin like cat does.