Morning Brian
I was given the details from a good friend of ours who knows Linux very well.
Here is an extract taken from the word doc guide I wrote a few years ago
############################################################################################
There were over 172200 entries in my BCM system. The last 4 years were my CDR data from when I first installed the system. My BCM system originally had those from the previous customer’s calling history! The same might also be with your database. Unix can't delete them with the normal utility as they are too numerate.
Let's say you have files from 2009? or 2010 you want to wipe? Unix is your friend. Because I only have recent logs now, my examples are for 2013, but just change the date for your scenario.
If you want to look for only the 2013 logs, then enter:
ls -al *.2013* <cr>
You will get a complete list for 2013. Try substituting the 2013 for 2009 etc. If you get a HUGE list, let's count them by using the command
ls -al *.2009* | wc -l <cr>
1080 <-- you'll get a little number after a few seconds. "wc" is
"Word count" and "-l" means count lines. The "|" means it’s the 'pipe' the output of the first command to the next. This is a clever command to know? That's what makes Unix handy for complex tasks. Do not mix the pipe | up with a capital I or small letter-L. This is the vertical line, near a back-slash on a British keyboard.
Now, if you want to wipe those old darned logs? If they are large in number,
the normal delete command "rm" won't do it. It barfs on the amount of input data. So, there's another way, piping the listing to another utility which does what it's told for everything piped to it.
As in the above scenario, let's wipe out the 2009 (or whatever) logs. ENSURE you are in the correct directory:
pwd <cr>
/var/nn/CDRDataFiles <-- OK, if we didn't move around, then it’s safe to begin the deletions.
We remove the target files by selecting certain ones, and pushing them to a command to do it: The below will remove all files from the year 2009:
ls *.2009* | xargs rm -rf <cr>
It will take a few seconds.
Check to see if they're gone:
ls *.2009* <cr> <-- and you should get nothing back.
[root@DraytonBCM50V2 CDRDataFiles]# ls *.2009*
ls: *.2009*: No such file or directory
#####################################################################################
I hope this explains your question?.
Firebird Scrambler
Nortel & Avaya Meridian 1 / Succession & BCM / Norstar Programmer
Website =
linkedin