Created
October 25, 2013 17:21
-
-
Save florianleibert/7158377 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
ip=`ifconfig eth0|grep -o -e "inet addr:[0-9\.]*"|sed 's/.*://g'` | |
name=`hostname` | |
echo $ip $name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment