Hi All,
my brain is asleep, and i need to do a simple piece of string manipulation
i've got a file containing about 100k records like this
&SEQUENCENUMBER=43|TIMESTAMP=20071023113913|TRIGGER=interim|CONTEXTID=node1;167773127+471dd383@1|MSISDN=1234567890|IPADDRESS=10.11.12.13|CLIENTPROTOCOL=rtsp|NETWORKELEMENTID=node1|SERVICETYPE=streaming|APPLICATIONDESCRIPTION=Streaming/downloading service|CONTENTURL=rtsp://100.10.12.13/vod/beer.3gp|TRANSFERREDVOLUME=0|TIMEDURATION=0|CHARGINGSTATUS=notDebited|CONTENTRATE=2000|PRICETYPE=pricePerMinute|CURRENCYCODE=978|CURRENCYEXPONENT=-2|&
i need to extract these values
167773127+471dd38
Using a command like awk like this it works
awk -F'|' '{print $4}' input.ASCII | awk -F';' '{print $2}'
but its not very efficient.
any ideas how to avoid the second awk?