![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| parsing a string in a shell script | asutoshch | Shell Programming and Scripting | 19 | 05-26-2008 10:18 PM |
| shell script parsing with sed | jjamd64 | UNIX for Dummies Questions & Answers | 5 | 12-11-2007 04:51 PM |
| Parsing a line in Shell Script | unishiva | Shell Programming and Scripting | 3 | 11-01-2007 04:30 PM |
| Help in parsing a CSV file with Shell script | mihirk | Shell Programming and Scripting | 10 | 06-24-2007 11:58 AM |
| Parsing a file in Shell Script | sendhilmani123 | Shell Programming and Scripting | 4 | 11-30-2006 02:29 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi I Have log like this :
0 234: [APPLICATION 1] { 3 2: [sequenceNumber] 04 EE 7 14: [timeStamp] '20081114081' 23 1: [trigger] 00 79 10: [msisdn] '38809' 91 15: [imsi] '528111510010159' 143 29: [applicationDescription] 'Streaming/downloading service' 174 3: [custom0] 'MTV' 179 43: [contentUrl] 'rtsp://172.28/MTV2GO-Loop.sdp' 224 1: [contentRate] 05 227 1: [priceType] 01 230 2: [currencyCode] 39 36 234 1: [currencyExponent] FE : } 237 248: [APPLICATION 1] { 240 2: [sequenceNumber] 04 EF 244 14: [timeStamp] '20081114082116' 260 1: [trigger] 02 316 10: [msisdn] '38809' 328 15: [imsi] '528111510010' 360 1: [paymentMethod] 01 380 29: [applicationDescription] 'Streaming/downloading service' 411 3: [custom0] 'MTV' 416 43: [contentUrl] 'rtsp://172.28/MTV2GO-Loop.sdp' 461 3: [transferredVolume] 19 83 87 466 1: [timeDuration] 5D 469 1: [debitedCost] 08 472 1: [chargingStatus] 01 475 1: [contentRate] 05 478 1: [priceType] 01 481 2: [currencyCode] 39 36 485 1: [currencyExponent] FE : } 712 236: [APPLICATION 1] { 715 2: [sequenceNumber] 04 F1 719 14: [timeStamp] '20081114082' 735 1: [trigger] 01 791 10: [msisdn] '38997' 803 15: [imsi] '528111500081770' 820 10: [ipAddress] '10.84.8.66' 832 1: [clientProtocol] 01 835 1: [paymentMethod] 01 855 29: [applicationDescription] 'Streaming/downloading service' 886 35: [contentUrl] 'rtsp://172.28/cnn.sdp' 923 3: [transferredVolume] 26 D0 CD 928 2: [timeDuration] 00 A9 932 1: [debitedCost] 0E 935 1: [chargingStatus] 01 938 1: [contentRate] 05 941 1: [priceType] 01 944 2: [currencyCode] 39 36 948 1: [currencyExponent] FE : } ..... ..... I Want that log become just only "[trigger] 02" and then collect into Timestamp,msisdn,timeduration,contentUrl anybody can help me ?? |
| Bookmarks |
| Tags |
| shell script, shell scripting, unix scripting, unix scripting basics |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|