perl -nle '/(?<= ).*(?= )/;print $&' sample.txt [Partial Output]
<OUTPUT>
<kjdjkn><jnsdnsdknsd>jnsdkjns<kjnsdkjndsj><kjnsdjnsdkj>987329<ksdnsdkjn><detail><ns1:errorDetailIt em xmlns:ns1="http://integration.xyz.com/common/ErrorD.xsd"><ns1
roviderError><ns1
roviderErrorCode>100</ns1
roviderErrorCode> <ns1
roviderErrorText>com.Resource-Exists-Exception : permission already exists</ns1
roviderErrorText>
</OUTPUT>
awk -F' [<>]' '{print $2}' sample.txt [Displaying Begining of the Line]
<OUTPUT>
05:22:58,434<REQUEST><soapenv:Envelope
14:30:58,966<REQUEST><soapenv:Envelope
01:09:36,981<REQUEST><soapenv:Envelope
10:41:43,842<REQUEST><soapenv:Envelope
11:41:20,957<REQUEST><soapenv:Envelope
12:22:19,059<REQUEST><soapenv:Envelope
12:26:45,606<REQUEST><soapenv:Envelope
23:52:15,848<REQUEST><soapenv:Envelope
11:05:18,754<REQUEST><soapenv:Envelope
11:37:27,279<REQUEST><soapenv:Envelope
15:45:37,480<REQUEST><soapenv:Envelope
10:32:00,711<REQUEST><soapenv:Envelope
10:32:13,459<REQUEST><soapenv:Envelope
11:52:51,915<REQUEST><soapenv:Envelope
11:58:40,728<REQUEST><soapenv:Envelope
14:21:15,353<REQUEST><soapenv:Envelope
19:45:25,138<REQUEST><soapenv:Envelope
02:06:09,454<REQUEST><soapenv:Envelope
15:35:48,146<REQUEST><soapenv:Envelope
16:43:03,078<REQUEST><soapenv:Envelope
16:47:11,092<REQUEST><soapenv:Envelope
</OUTPUT>
/usr/xpg4/bin/grep -E "<(ns1
roviderErrorText)>.*</\1>" sample.txt
<OUTPUT>
No OUTPUT & -o is an illegal Operation
</OUTPUT>