start work on loop
This commit is contained in:
		
							parent
							
								
									129f7a3d94
								
							
						
					
					
						commit
						9db2cf0b44
					
				@ -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 ',';"
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										9
									
								
								push_all.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								push_all.sh
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
getlist() {
 | 
			
		||||
    find . -iname "*.csv" | while read f
 | 
			
		||||
    do
 | 
			
		||||
        printf $f
 | 
			
		||||
    done
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
getlist
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user