# execure the sql for baseline which builds the sql and inserts into a table $PG -f routes/baseline/gen_baseline.sql # pull the sql out of the table and write it to route directory $PG -c "SELECT t FROM fc.sql WHERE cmd = 'baseline'" -t -A -o routes/baseline/baseline.sql