Operating System - HP-UX
1753841 Members
8965 Online
108806 Solutions
New Discussion юеВ

Re: 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 3
Dennis Handly
Acclaimed Contributor

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.
Dennis Handly
Acclaimed Contributor

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 *