Re: [技巧]在Linux下查看系统位数

  • From: WANG Cong <xiyou.wangcong@xxxxxxxxx>
  • To: "Thomas X. Iverson" <txi@xxxxxxxxxxxxx>
  • Date: Fri, 9 May 2008 14:09:00 +0800

On Fri, May 09, 2008 at 02:04:47PM +0800, Thomas X. Iverson wrote:
>
>这个我知道
>但是如果我想截取确切的机器位数呢?直接显示32或者64,而不是人为判断
>

sed(1)

比如:

uname -m | sed -e 's/i.86/32/'


-- 
Hi, I'm a .signature virus, please copy/paste me to help me spread
all over the world.

Other related posts: