Search Results

Search: Posts Made By: Royi
10,501
Posted By Royi
BTW - why do we need the "+ 0"? is this to...
BTW - why do we need the "+ 0"?
is this to protect lines that have only CLICK but don't have CONV?
10,501
Posted By Royi
OMG - You are a genius!!! Thanks so much!
OMG - You are a genius!!!
Thanks so much!
10,501
Posted By Royi
awk Group By and count string occurrences
Hi Gurus,
I'm scratching my head over and over and couldn't find the the right way to compose this AWK properly - PLEASE HELP :confused:

Input:
c,d,e,CLICK
a,b,c,CLICK
a,b,c,CONV
c,d,e,CLICK...
2,001
Posted By Royi
There's most likely a faster way, but this should...
There's most likely a faster way, but this should do the trick:
echo "T111||T222||T444||T222||T555" |sed 's/||/\n/g' |sort -u |awk '{ printf "%s ", $0 }'
Showing results 1 to 4 of 4

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