psql: use here-strings instead of echo

waldyrious/alt-syntax
Igor Shubovych 2014-05-12 23:54:47 +03:00
parent 82564bd222
commit b74dff1d79
1 changed files with 2 additions and 2 deletions

View File

@ -14,6 +14,6 @@
`psql -c '{{query}}' {{database}}`
- Run semicolon-separated *queries* against the given *database*. Note: useful in shell scripts
- Run several queries against the given *database*. Note: useful in shell scripts
`echo '{{queries}}' | psql {{database}}`
`psql {{database}} <<< "{{query1}}; {{query2}}"`