Search Results

Search: Posts Made By: daPeach
2,718
Posted By Chubler_XL
/Perhaps for a little more clarity, I should have...
/Perhaps for a little more clarity, I should have passed a blank string into comb() from the END clause:

awk '
function comb(v,i) {
for(i in A) {
delete A[i];
if(length(A))
...
2,718
Posted By Don Cragun
As RudiC said, variables that aren't supplied as...
As RudiC said, variables that aren't supplied as arguments when an awk function is called are local variables and are initialized to 0 (if used as a number) or to an empty string (if used as a...
44,088
Posted By Scrutinizer
They advise not to use them, but the...
They advise not to use them, but the specification also says they have been marked obsolescent and that script should be converted:


test...
1,477
Posted By rdcwayx
awk '{a[$1]=a[$1] FS $2}END{for (i in a) print...
awk '{a[$1]=a[$1] FS $2}END{for (i in a) print i,a[i]}' urfile
Showing results 1 to 4 of 4

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