grep 过滤
1. 过滤命令的输出结果
ps -ef|grep ora_*
ps -ef|grep oracle 显示所有的oracle用户进程
2. 过滤文件,显示所有含对应字符的行
[oracle@localhost ~]$
[oracle@localhost ~]$ grep ORACLE_BASE .bash_profileexport ORACLE_BASE=/home/oracle/app
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
[oracle@localhost ~]$