Search Results

Search: Posts Made By: Scrutinizer
2,481
Posted By Scrutinizer
Sure: awk ' NR==FNR{ ...
Sure:

awk '
NR==FNR{ # When the first file is being read (only then are FNR and NR equal)
W[$2]=$3 # create an (associative)...
2,481
Posted By Scrutinizer
You could try to do it all in awk, that would...
You could try to do it all in awk, that would speed up things. For example:
awk '
NR==FNR{
W[$2]=$3
next
}
{
for(i in W)
if(length($i)>W[i]){
print >...
Showing results 1 to 2 of 2

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