help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] How to let a command take multiple here-doc?


From: Peng Yu
Subject: [Help-bash] How to let a command take multiple here-doc?
Date: Thu, 28 May 2015 22:23:32 -0500

Hi,

The following bash code uses cat twice. Because one uses EOF the other
uses 'EOF', they can not readily be combined.

x='Hello World!'
cat <<EOF
$x
EOF
cat <<'EOF'
$x
EOF

I can't find that that bash support multiple here-docs for the same
command. Is it so?

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]