Let's say I have this command:
/sbin/ifconfig|grep inet|head -1|sed 's/\:/ /'|awk '{print $3}'
Is it possible to shorten this to let's say writing host in the command line?
Let's say I have this command:
/sbin/ifconfig|grep inet|head -1|sed 's/\:/ /'|awk '{print $3}'
Is it possible to shorten this to let's say writing host in the command line?