Hi
Another query ... I have a csv file with names and addresses, eg:
FRED,SMITH,128 NEW DRIVE,LONDON
but sometimes I get a record:
FRED,SMITH,"128 NEW DRIVE,HOLBORN", LONDON
where 128 NEW DRIVE,HOLBORN is the third field
Is there any easy way to code this in awk, perhaps with pattern...
Hi
Probably an easy one but here goes;
I want to increment a count in an array like this:-
arr[$1]++
to count occurences of a value through a file. But if that element of the array is NULL or blank this doesn't work. Is there a simpler one liner to initialise and then increment the element...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.