Skip to content

Commit

Permalink
One file version
Browse files Browse the repository at this point in the history
Just combined to one file
  • Loading branch information
kowalsk authored and kowalsk committed Jan 15, 2016
1 parent 2c88ff4 commit 0ec1bb3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 32 deletions.
19 changes: 19 additions & 0 deletions asftp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

for file in `find ftpsource -name \*.csv`; do

filename=$(basename $file)
echo $filename
mv $file $file.tmp

sftp USER_NAME@IP_ADDRESS << EOT
cd out
put $file.tmp
rename $filename.tmp $filename
ls -al
bye
EOT

rm $file.tmp

done
26 changes: 0 additions & 26 deletions inner.sh

This file was deleted.

6 changes: 0 additions & 6 deletions outer.sh

This file was deleted.

0 comments on commit 0ec1bb3

Please sign in to comment.