diff --git a/pg_push.sh b/pg_push.sh index 0ff7ba9..a7ce527 100644 --- a/pg_push.sh +++ b/pg_push.sh @@ -1,2 +1,2 @@ $PG -c "DELETE FROM import.targ_rev;" -$PG -c "\copy import.targ_rev FROM //mnt/c/Users/PTrowbridge/Downloads/001_XNS0T1G3_TRG.csv WITH CSV HEADER DELIMITER ',';" +$PG -c "\copy import.targ_rev FROM //mnt/c/Users/PTrowbridge/Downloads/004_XNT0TQT3_TRG.csv WITH CSV HEADER DELIMITER ',';" diff --git a/push_all.sh b/push_all.sh new file mode 100644 index 0000000..ddea33c --- /dev/null +++ b/push_all.sh @@ -0,0 +1,9 @@ +#!/bin/bash +getlist() { + find . -iname "*.csv" | while read f + do + printf $f + done +} + +getlist