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