Dump CUS procedure changes

Goal

Create ASCII files each containing a single CUS procedure definitions which have changed since initial database loading.

Procedure

Create an empty directory and execute following command. Make sure CUS properties are set right.

cus -listdefs | & gawk 'BEGIN {c="cus -viewdef "; f=" >& "} ; $3 != 1 && $2 == "version" {print c $1 " " $3 f $1 ".txt." $3; print c $1 "1" f $1 ".txt.1"}' | xargs -t -i bash -c "{}"

Result

The directory will contain files named according the CUS procedure name, appended by ".txt." appended by the version number.

Herschel: PACS/EQM_IMT_Procedures/dumpCusProcedureChanges (last edited 2009-07-15 14:32:37 by localhost)