Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Unix Q: Substring-ing an output.
awk/nawk/gawk has gotten way too much credit on this one. We really should give sed a little credit too.
ps -eo args | sed -n 's/\(^ora_smon_\)\(.*\)/\2/p'
-----Original Message-----
Very clever! But unfortunately, -F accepts only 1 character. I tried that though...
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Stephen Lee
INET: slee_at_dollar.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Oct 28 2002 - 18:28:39 CST
![]() |
![]() |