Define an alias with an embeded awk command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi ,all :

I'm trying to define an alias with an embeded awk command:

alias checketh0  `ifconfig eth0 |grep 'inet addr:' |awk '{prinrt $2}' |cut -c 6- `

After  I edit it in the  .cshrc file and run "source .cshrc" , I run the "checketh0" command in the terminal ,
the screen displays the "192.168.7.24: Command not found "


Why does is it ?Any help will be highly appreciated.

note: I'm using csh  shell.







Thanks for you help.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux