include batch file script to download R output

This commit is contained in:
Paul Trowbridge 2020-05-01 01:34:44 -04:00
parent 9db2cf0b44
commit 153d682fce
2 changed files with 4 additions and 2 deletions

2
plots.cmd Normal file
View File

@ -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"

View File

@ -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
}