On 15/12/09 15:40, Majian wrote:
Hi ,all :Hi Majian, It's not an issue with awk but with the way the alias is interpreted. It tries to run the result of the commands in between the ` ` as a command itself. To get around it, try: # alias checketh0="echo `ifconfig eth0 | grep 'inet addr:' |awk '{print $2}' | cut -c 6-`" Cheers, Andrew |
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos