[Ubuntu-zh] MEMORY=$(shell free |grep "Mem:" | awk '{print $2}')
zhiwei chen
zhiweik在gmail.com
星期日 十月 2 10:35:11 UTC 2011
多谢指正。
On Sun, Oct 2, 2011 at 9:17 AM, Tusooa Zhu <tusooa在gmail.com> wrote:
> > MEMORY=$(shell free | grep "Mem:" |awk '{print $2}')
> 这一行有点问题。$是make的特殊字符。$2给当作变量,传进去了。
> 改成MEMORY=$(shell free | grep "Mem:" |awk '{print $$2}')
> --
> Regards,
> Tusooa
> _____________________________________
> < There's more than one way to do it. >
> -------------------------------------
> \ ^__^
> \ (oo)\_______
> (__)\ )\/\
> ||----w |
> || ||
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
-------------- 下一部分 --------------
一个HTML附件被移除...
URL: <https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20111002/04449a18/attachment.html>
关于邮件列表 ubuntu-zh 的更多信息