Search Results

Search: Posts Made By: asyed
1,795
Posted By elixir_sinari
awk -F, '{c[$3,$4,$5]++ if(c[$3,$4,$5]==1) { ...
awk -F, '{c[$3,$4,$5]++
if(c[$3,$4,$5]==1)
{
one[$3,$4,$5]=$1
two[$3,$4,$5]=$2
}}
c[$3,$4,$5]>1{$1=one[$3,$4,$5];$2=two[$3,$4,$5]}1' OFS=, file
1,764
Posted By bartus11
Try: awk -F"|"...
Try: awk -F"|" 'length($1)>l[$3"|"$4]{l[$3"|"$4]=length($1);a[$3"|"$4]=$0}END{for (i in a) print a[i]}' file
Showing results 1 to 2 of 2

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