How to:


grep '.arc' brarchive.log | grep ARCHIVE | grep -v '.dbf' | grep -v '.cds' | awk '{printf("rm %s\n", $2)}' > rm_old_logs.ksh