The file i am working with (oraInst.loc) looks like this:
inventory_loc=/u01/app/ORAENV/oracle/oraInventory
inst_group=dba
I need to use a regular expression to grab the value between app/ and /oracle. In this case it will be ORAENV but it could be any alphanumeric string of any case and length but with no spaces.
From what I have read so far using grouping seems to be the way to do this but I just can't get my head round it.
I am using egrep on Solaris 10 as the regex engine.