Skip to content

Instantly share code, notes, and snippets.

@techvoltage
Created May 23, 2017 06:33
Show Gist options
  • Save techvoltage/9f75ad7ffb2b763bd71f0600beaf6c31 to your computer and use it in GitHub Desktop.
Save techvoltage/9f75ad7ffb2b763bd71f0600beaf6c31 to your computer and use it in GitHub Desktop.

Revisions

  1. techvoltage created this gist May 23, 2017.
    3 changes: 3 additions & 0 deletions scp_what.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #!/bin/bash -x
    #Yep that's lazy
    echo scp file `whoami`@`ip route get 8.8.8.8 | awk 'NR==1 {print $NF}'`:`pwd`