Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Royi
7,304
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?
7,304
Posted By Royi
OMG - You are a genius!!! Thanks so much!
OMG - You are a genius!!!
Thanks so much!
7,304
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...
1,516
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

 

Featured Tech Videos

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