diff options
author | Jakob Stendahl <jakobste@uio.no> | 2020-03-16 15:38:27 +0100 |
---|---|---|
committer | Jakob Stendahl <jakobste@uio.no> | 2020-03-16 15:38:27 +0100 |
commit | 285d9961e53e011ba119db4fdaf4474817624cfd (patch) | |
tree | ee7617b4d163a234198aa9a2ec70a1cd7707fea3 /bin | |
parent | 41e4e4f69c8677504c153b95f2b42cd582fb04e5 (diff) | |
download | dotfiles-285d9961e53e011ba119db4fdaf4474817624cfd.tar.gz dotfiles-285d9961e53e011ba119db4fdaf4474817624cfd.zip |
Made some scp scripts
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/uio-get | 2 | ||||
-rwxr-xr-x | bin/uio-send | 2 | ||||
-rwxr-xr-x | bin/usbInf | 7 |
3 files changed, 11 insertions, 0 deletions
diff --git a/bin/uio-get b/bin/uio-get new file mode 100755 index 0000000..392e957 --- /dev/null +++ b/bin/uio-get @@ -0,0 +1,2 @@ +#!/bin/sh +scp jakobste@login.ifi.uio.no:/uio/hume/student-u27/jakobste/$1 ~/Downloads/ diff --git a/bin/uio-send b/bin/uio-send new file mode 100755 index 0000000..ad3f73b --- /dev/null +++ b/bin/uio-send @@ -0,0 +1,2 @@ +#!/bin/sh +scp $1 jakobste@login.ifi.uio.no:/uio/hume/student-u27/jakobste/Downloads/ diff --git a/bin/usbInf b/bin/usbInf new file mode 100755 index 0000000..14e4bf0 --- /dev/null +++ b/bin/usbInf @@ -0,0 +1,7 @@ +system_profiler SPUSBDataType \ + | awk ' + /Product ID:/{p=$3} + /Vendor ID:/{v=$3} + /Manufacturer:/{sub(/.*: /,""); m=$0} + /Location ID:/{sub(/.*: /,""); printf("%s:%s %s (%s)\n", v, p, $0, m);} + ' |