psql_csv/push_all.sh
2020-05-01 01:34:44 -04:00

10 lines
173 B
Bash

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