Advertisement
savsanta

transf.sh

Oct 14th, 2018
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. file=$1
  4. key=~/mission/RU-BYOL.pem
  5. host=ec2-18-212-169-167.compute-1.amazonaws.com
  6.  
  7. echo "Utilizing $file"
  8.  
  9. while IFS= read -r line
  10.  
  11. do
  12. echo "Current Line Utilized $line"
  13. scp -i $key $line ubuntu@$host:
  14.  
  15. done < "$file"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement