Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

INSTR under shell?

633487Apr 24 2009 — edited Apr 24 2009
Hi everybody,

I am looking for the following SQL translatioin for shell:

within SQL I would create following select statement:
SELECT SUBSTR (column_name, INSTR (column_name, 'character_to_be_searched'), INSTR (column_name, 'char_to_be_searched_end') )
FROM table_name;

The substring I have managed (with awk), but I would like to know how I can implement the INSTR-part for shell.

Thank you for helping me.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 22 2009
Added on Apr 24 2009
1 comment
1,594 views