Search Results

Search: Posts Made By: irfanmemon
3,179
Posted By itkamaraj
grep itself can read the file. so you dont need...
grep itself can read the file. so you dont need to use cat



grep ProcessNewOrderSingleTxnDelegate gsc_20121121.log | sed .....


you can use the below awk.


awk...
3,179
Posted By itkamaraj
$ nawk...
$ nawk '{sub(",",":",$2);for(i=1;i<=NF;i++){if($i~/OrderId/){o=$(i+1);break;}}print $1" "$2","o","$NF;}' gsc_1_20121121.log
2012-11-21 08:41:07:367,KR000002600016-SO,KR000002600016-O
2012-11-21...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy