Take some care when using match ($0, i)
Not sure what the intention of this counting is, but if the code have a line like abb it would be counted both as a and as b
I have a big text file that need to process.
As I know, awk is the best tool to process text file. That why I'm looking for someone help me. Because for a long time, about 5 years, I haven't use awk. So I cann't remember any more.
Hi. RudiC
I've done the test with your script. But I don't know why the result have 6 on the top of output results.
6
a 2
b 2
c 1
d 1
Can you explain to me? And how can I delete it in output result? Thanks