diff --git a/plots.cmd b/plots.cmd new file mode 100644 index 0000000..39bc509 --- /dev/null +++ b/plots.cmd @@ -0,0 +1,2 @@ +pscp.exe -pw qqqx53@038 ptrowbridge@usmidlnx01:/home/ptrowbridge/pt_share/*.csv "C:\Users\PTrowbridge\Downloads" +pscp.exe -pw qqqx53@038 ptrowbridge@usmidlnx01:/home/ptrowbridge/pt_share/*.png "C:\Users\PTrowbridge\Downloads" diff --git a/push_all.sh b/push_all.sh index ddea33c..054294b 100644 --- a/push_all.sh +++ b/push_all.sh @@ -1,8 +1,8 @@ #!/bin/bash getlist() { - find . -iname "*.csv" | while read f + find . -iname "001*.csv" | while read f do - printf $f + $PG -c "\copy import.targ_rev FROM $f WITH CSV HEADER DELIMITER ',';" done }