I've copied a large e-mail (raw text) from one web terminal. I can paste that into the terminal, but I want to feed it to
sa-learn. I was thinking one thing I could do here is use heredoc's. This syntax appears to work.
$ echo <<EOF | sa-learn --spam <paste email> EOF
However, it doesn't seem to work...
$ echo <<EOF > foo AOSJFDOASDFJKOK EOF $ cat foo (nothing)
How does a heredoc work in bash?