|
From: | Mike Frysinger |
Subject: | Re: Here document and stdin? |
Date: | Sun, 15 Aug 2010 20:55:05 -0400 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |