System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate number of CDR's for one month.

 
syedar
Advisor

Calculate number of CDR's for one month.

Hi all,

I need to know how to calculate total number of CDR's from different folders which contains files for one month.

Note:- 1 file contains many CDR's.
3 REPLIES

Re: Calculate number of CDR's for one month.

Is this "Call detail record"?

You are going to have to explain how you can determine the record boundaries? Can you just use "wc -l" on every file in the directories?
syedar
Advisor

Re: Calculate number of CDR's for one month.

Yes this is Call Detail Record.

we use cat filename | wc -l to count the CDR's in a file.

Re: Calculate number of CDR's for one month.

>we use cat filename | wc -l to count the CDRs in a file.

If you use the following you can get a count for each file and a total:
wc -l *