======================================================= CONTRIBUTOR: Engineering Staff, Atria Software, Inc. ======================================================= ********************************************************** ************** THIS IS UNSUPPORTED SOFTWARE ************** ********************************************************** ********************************************************** * Atria makes no representation that the descriptions * * and software code contained in this document will * * not infringe on existing or future patent rights, * * copyrights, trademarks, trade secrets or other * * proprietary rights of third parties. The * * descriptions contained herein do not imply the * * granting of licenses to make, use, sell, license or * * otherwise transfer Atria products described herein. * * Atria disclaims responsibility for errors which may * * appear in this document, and it reserves the right, * * in its sole discretion and without notice, to make * * substitutions and modifications in the products and * * practices described in this document. * ********************************************************** ------------------------------------------------------------------ T0018: Script to count lines changed over a period of time. ------------------------------------------------------------------ OVERVIEW -------- This scripts examines an element, or tree of elements, and prints a report describing how many lines were changed in the past week, month, quarter, half year, year, and beyond. For example: +--------------------------------------------------------------------------- Lines changed in the past period (cummulative): Total Lines Week Week% Month Month% Quartr Quart% HalfYr HlfYr% Year Year% File ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------------ 327 0 (0%) 5 (1%) 10 (2%) 0 (0%) 312 (97%) cmd_admin.c ... Grand totals ... +--------------------------------------------------------------------------- SOURCE ------ count_changes.sh USAGE ----- count_changes.sh pathname ... If pathname is a directory all its files (and subdirs) will be counted. Grand totals are printed summing all listed files