I have got a sample file below(colon( is the field separator) . The data is like
col1:col2:col3:col4:col5:col6:col7:col8:col9:col10
11:12:012:aa:a a a:10::111:12:
311:321:320:caad::321:31:3333::
2:22:222::bbb::cads::2222:20
:::::12:1234::12:
:5:55::555:5555::::55550
Now I want to find the number of times the column is having no value (null).i.e. the output should be like
col1 - 2
col2 - 1
col3 - 1
col4 - 3
col5 - 2
col6 - 1
col7 - 2
col8 - 3
col9 - 2
col10 - 3
The file can have 'm' number of columns and can have 'n' number of records.