Procházet zdrojové kódy

psql: use here-strings instead of echo

Igor Shubovych před 11 roky
rodič
revize
b74dff1d79
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      pages/common/psql.md

+ 2 - 2
pages/common/psql.md

@@ -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}}"`