Search Results

Search: Posts Made By: cintlt
3,683
Posted By pravin27
Try this, test.awk BEGIN{FS=";"}...
Try this,

test.awk

BEGIN{FS=";"} NR==FNR{a[$1]=$2;next} !a[$1] ||a[$1] < $2


invocation

awk -f test.awk source template.txt
3,683
Posted By pravin27
I hope this will solve your problem awk...
I hope this will solve your problem

awk -F";" 'NR==FNR{a[$1]=$2;next} !a[$1] ||a[$1] < $2 ' source template.txt
3,683
Posted By pravin27
try this, awk -F"." 'NR==FNR{a[$1]++;next}...
try this,

awk -F"." 'NR==FNR{a[$1]++;next} !a[$1]' source template.txt
Showing results 1 to 3 of 3

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