psql_csv/push_all.sh

10 lines
173 B
Bash
Raw Normal View History

2020-05-01 01:17:12 -04:00
#!/bin/bash
getlist() {
find . -iname "001*.csv" | while read f
2020-05-01 01:17:12 -04:00
do
$PG -c "\copy import.targ_rev FROM $f WITH CSV HEADER DELIMITER ',';"
2020-05-01 01:17:12 -04:00
done
}
getlist