Joined October 2014
·
Posted to
Coderwall - Markdown Cheat Sheet
over 1 year
ago
Great topic. I would add that you can use <br>
for a new line.
Posted to
Extract your external IP using command line tools
over 1 year
ago
Here's another one. I've been using it for years:
$ type my-ip
my-ip is aliased to `wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -f7 -d"<" | cut -f2 -d">" '
Output would be:
$ my-ip
Current IP Address: xxx.xxx.xxx.xxx
You should be able to just change the protocol to udp, like "(echo > /dev/udp/$SERVER/$PORT)"