!<arch> Ipchgkey 418698214 968 27 100644 105 ` aaa bbb|ccc ddd|eee: fff:lp=here:id=butnothere ggg| hhh|iii:lp=andhere :jjj kkk|lll|:lp:lp=andherealso: Opchgkey 418698215 968 27 100644 105 ` aaa bbb|ccc ddd|eee: yyy:lp=here:id=butnothere ggg| hhh|iii:lp=andhere :jjj kkk|lll|:lp:lp=andherealso: Tpchgkey.c 418698220 968 27 100644 440 ` /* * pchgkey() */ #include <stdio.h> #include "path.h" #include "pdb.h" char *PGN = "Tpchgkey"; /* program name */ main() { int closepdb(); /* close database */ PDB *mustopenpdb(); /* must open database or die */ PDB *pdbp; /* database stream */ void pbchgkey(); /* change specified key */ pdbp = mustopenpdb("T_INPUT", ".", "rw"); pchgkey("fff", "yyy", pdbp); pchgkey("zzz", "zzz", pdbp); closepdb(pdbp); exit(0); } Tpchgkey.sh 418870183 968 27 100755 147 ` #!/bin/csh -f # # pchgkey() # cp Ipchgkey T_INPUT Tpchgkey cat T_INPUT |& diff - Opchgkey set diffstatus = $status rm -f T_INPUT exit($diffstatus)