A collection of useful hacks, tips, and tricks mostly for GNU tools on Linux/macOS.
.bashrc
echo "Welcome to" `hostname` "("`ifconfig eth0 | grep "inet addr:" | awk -F: '{print($2)}' | sed "s/ /:/g" | awk -F: '{print($1)}' `")"
Post a Comment
No comments:
Post a Comment