- 论坛徽章:
- 0
|
在线请教
有老/新两台机器 通过ps aux |grep java |grep "t-5"|grep -vw "sh" 查看t-5进程,老机器能有值,新机器上查不到
老/新机器的bash/grep 版本如下
###老机器
$bash --version
GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
$man --grep
man: unrecognized option `--grep'
man, version 1.6d
###新机器
$ bash --version
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
man --grep
man: unrecognized option '--grep'
man, version 1.6f
请教如何处理这个问题 |
|