Skip to content

Instantly share code, notes, and snippets.

@jtuttas
Created March 20, 2018 08:11
Show Gist options
  • Save jtuttas/2c51ee08a17203d605511969a8db1c2a to your computer and use it in GitHub Desktop.
Save jtuttas/2c51ee08a17203d605511969a8db1c2a to your computer and use it in GitHub Desktop.
Raspi find
#!/bin/bash
IP=$(ip addr show enxb827ebdbdca1 | awk '$1 == "inet" {gsub(/\/.*$/, "", $2); print $2}')
url="https://script.google.com/macros/s/AKfycby4En3zI_no0iIcczt8Je2_JL2b1sQFQExgHKrN-0YKNAxMWxI/exec?name=tuttas&ip=$IP"
echo $url
curl --request GET --url $url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment