I do have a file with many lines (rows) and it is space delimited. For example: I have a file named SR345_pl.txt. If I open it in an editor, it looks like this:
The output I want is in a single line with the part of the name of the file as the first column and then count the number of A2's, A3's, A5's and all. The characters or values in column 2 of the files varies from A1 to A10. Basically counts of number of A1's, A2's.....upto A10.
awk: syntax error at source line 5
context is
for (i=0; i<=11; i++) printf >>> i== <<<
awk: illegal statement at source line 5
awk: illegal statement at source line 5
Some systems have a limited version of awk by default, and must use nawk to have certain features. Since the program didn't work I guessed you were on solaris.