advanced heredoc usage 

>How can I use "heredoc" to list something and then feed it into a pipe,

The syntax would be:

cat <<EOF | xargs -i echo {} {}
file1
file2
file3
EOF

Ken Pizzini

advanced heredoc usage 

Another way to keep the EOF string on a line alone:

{ cat <<EOF
file1
file2
file3
EOF
} | xargs -i echo {} {}

John Savage

documented on: 06-11-99 20:47:27