one single cmd wee<p>MYMAC=$(arp -a | awk '/[0-9a-f]:/ { gsub(/^0:|[1-9a-z]0:/, "00:", $4); gsub(/:/, "", $4); print $4; exit; }') && curl --header "Content-Type: text/xml" --data "<?xml version='1.0'?><LocationRQ xmlns='<a href="http://skyhookwireless.com/wps/2005'" rel="nofollow">http://skyhookwireless.com/wps/2005'</a> version='2.6' street-address-lookup='full'><authentication version='2.0'><simple><username>beta</username><realm>js.loki.com</realm></simple></authentication><access-point><mac>$MYMAC</mac><signal-strength>-50</signal-strength></access-point></LocationRQ>" <a href="https://api.skyhookwireless.com/wps2/location" rel="nofollow">https://api.skyhookwireless.com/wps2/location</a><p>had to change 0: to 00: and strip out those :'s