Search Results

Search: Posts Made By: himanshu
1,941
Posted By Don Cragun
You haven't described the format of your input...
You haven't described the format of your input file. Just showing us a 10 line sample input file lets us makes lots of possibly erroneous assumptions that might or might not be valid in your actual...
1,941
Posted By vgersh99
awk 'NR == FNR {CNT[$NF]++;if (!($NF in order) &&...
awk 'NR == FNR {CNT[$NF]++;if (!($NF in order) && CNT[$NF]>1) order[$NF]=++cnt;next} $NF in order {print $0, order[$NF]}' file file
1,941
Posted By vgersh99
where exactly are you stuck?
where exactly are you stuck?
Showing results 1 to 3 of 3

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