On Sun, Aug 15, 2010 at 19:55, Mike Frysinger <vap...@gentoo.org> wrote:
> On Sun, Aug 15, 2010 at 8:47 PM, Peng Yu wrote:
>> cat file.txt | sqlite3 main.db <<EOF
>
> you only get 1 stdin ... either via the pipe or the heredoc.  give
> everything you want to the first cat and worry about sqlite only
> consuming the pipe.
>
> cat file.txt - <<EOF | sqlite3 main.db
> ...
> EOF

However, that does not achieve what Peng Yu wants; indeed, it would
seem that Peng Yu is confusing Bash's Here Documents with Perl's
here-documents.

My suggestion is to use bash quoting and escaping as necessary; as
with Perl, Bash strings may span multiple lines.

Reply via email to