Install, Upgrade, Clone, Patch - EBS (MOSC)

MOSC Banner

Extract from grep

edited Oct 24, 2019 11:34AM in Install, Upgrade, Clone, Patch - EBS (MOSC) 5 commentsAnswered ✓

Hi,

R12.2 On AIX

I run:

grep 's_ohs_instance_loc' $CONTEXT_FILE

And it returns:

      

<ohs_instance_loc oa_var="s_ohs_instance_loc">/u01/appl_top/env/fs1/FMW_Home/webtier/instances/EBS_web_env_OHS1</ohs_instance_loc>

How can I extract only:

/u01/appl_top/env/fs1/FMW_Home/webtier/instances/EBS_web_env_OHS1

which is between ">" and "<" from grep output?

I tried (without succss):

grep 's_ohs_instance_loc' $CONTEXT_FILE | awk '{sub(/.*>/,X,$0);sub(/<.*/,X,$0);print}'

Thanks

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center