Very basic ```sh``` script to log your IP into a csv file.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 lines
221 B

#!/bin/sh
# Define vars
AL_CSV="addresslog_data.csv"
AL_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
AL_IPv4=$(curl -4s ifconfig.co)
AL_IPv6=$(curl -6s ifconfig.co)
printf "$AL_DATE,$(hostname),$AL_IPv4,$AL_IPv6\n" >> $AL_CSV