Quote:
Originally posted by Perderabo
[o] is a character class with just a single character. It will match o but it will not match the string "[o]".
This stops the grep command from finding itself. Take out those brackets and the results expand by one with the extra line being the grep process.
The results with the [] and without seem the exact same. I guess I don't get it. Either way, IT WORKS!!
THANKS A BUNCH!!
bash-2.03$ ps -ef | egrep "mysqld|opt/bea.*java.*80"
root 3930 1 0 09:53:58 ? 0:44 /opt/bea/jdk131/bin/../bin/sparc/
native_threads/java -server -Dui.root=80 -ms89
root 1015 1 0 11:44:00 ? 1:13 /opt/bea/jdk131/bin/../bin/sparc/
native_threads/java -hotspot -Drib.root=8000 -
root 1161 1 0 11:53:09 ? 0:00 /bin/sh /usr/local/bin/safe_mysql
d --datadir=/cache --pid-file=/cache/transserv
root 1180 1161 0 11:53:09 ? 0:16 /usr/local/libexec/mysqld --based
ir=/usr/local --datadir=/cache --user=root --p
bash-2.03$ ps -ef | egrep "[m]ysqld|[o]pt/bea.*java.*80"
root 3930 1 0 09:53:58 ? 0:44 /opt/bea/jdk131/bin/../bin/sparc/
native_threads/java -server -Dui.root=80 -ms89
root 1015 1 0 11:44:00 ? 1:13 /opt/bea/jdk131/bin/../bin/sparc/
native_threads/java -hotspot -Drib.root=8000 -
root 1161 1 0 11:53:09 ? 0:00 /bin/sh /usr/local/bin/safe_mysql
d --datadir=/cache --pid-file=/cache/transserv
root 1180 1161 0 11:53:09 ? 0:16 /usr/local/libexec/mysqld --based
ir=/usr/local --datadir=/cache --user=root --p