Created
July 24, 2015 13:17
-
-
Save johncarroll/d19d5aebe748581df1ed to your computer and use it in GitHub Desktop.
Generate id number from IP address octets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ID=hostname -I | awk -F '.' '{ print ($3*255+$4) }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment