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 -mike