[CentOS] Define an alias with an embeded awk command error ?
sync
jiannma at gmail.comSat Mar 6 08:47:04 UTC 2010
- Previous message: [CentOS] iptables bugs going untended?
- Next message: [CentOS] Define an alias with an embeded awk command error ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, guys: I'm trying to define an alias in .cshrc with the embeded awk command, like this : alias checketh0 "ip add ls eth0 |awk '/inet/{print $2}' |sed -n '1p' " Then i run "source ~/.cshrc" and run "checketh0" command in the terminal , but the result is the following : " inet 192.168.18.18/24 brd 192.168.18.255 scope global eth0" but i want this result : 192.168.18.18/24 How do I do it ? Any help will be highly appreciated. Thanks for you help ~ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100306/441fa677/attachment.html>
- Previous message: [CentOS] iptables bugs going untended?
- Next message: [CentOS] Define an alias with an embeded awk command error ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list