Fixed example

The cat should actually be an echo if you want to write the IP address to a file