Created
May 23, 2017 10:29
-
-
Save mjj2000/7ba644769699adb70bbc29247b429ba4 to your computer and use it in GitHub Desktop.
Copy local ip address to clipboard in OS X
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
#!/bin/bash | |
# | |
# copy local ip address to clipboard | |
# this script is only for OS X | |
echo -n `ifconfig en0 | awk '$1 == "inet" {print $2}'` | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment