Search Results

Search: Posts Made By: Calypso
7
awk
1,813
Posted By bartus11
Try:echo...
Try:echo "26.9,3.2,1.87,2.38,8.41,1.7,0.846,1.27,1.81,3.41,2.53,0.085,45.2" |
awk -F"," -v OFS="" '{x=$1;y=$2;sub("\\.","_",x);sub("\\.","_",y);print...
2,091
Posted By pamu
try $awk -F "[,:]"...
try

$awk -F "[,:]" '{if($2=="SENT"){A[$3,$4+0]+=1}else{A[$3,$4+0]-=1} print $1,$2,$3,$4+0" : "A[$3,$4+0]}' OFS="," file

1,SENT,EBS,1 : 1
2,DONE,REU,1 : -1
3,SENT,EBS,2 : 1
4,DONE,EBS,1 : 0...
Showing results 1 to 2 of 2

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