start work on loop

This commit is contained in:
Paul Trowbridge 2020-05-01 01:17:12 -04:00
parent 129f7a3d94
commit 9db2cf0b44
2 changed files with 10 additions and 1 deletions

View File

@ -1,2 +1,2 @@
$PG -c "DELETE FROM import.targ_rev;" $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 ',';"

9
push_all.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
getlist() {
find . -iname "*.csv" | while read f
do
printf $f
done
}
getlist