!<arch> Ipaddkey 418697964 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: Opaddkey 418697964 968 27 100644 109 ` aaa bbb|ccc ddd|eee: yyy|fff:lp=here:id=butnothere ggg| hhh|iii:lp=andhere :jjj kkk|lll|:lp:lp=andherealso: Tpaddkey.c 418697968 968 27 100644 448 ` /* * paddkey() */ #include <stdio.h> #include "path.h" #include "pdb.h" char *PGN = "Tpaddkey"; /* program name */ main() { int closepdb(); /* close database */ PDB *mustopenpdb(); /* must open database or die */ PDB *pdbp; /* database stream */ void paddkey(); /* add key to specified entries */ pdbp = mustopenpdb("T_INPUT", ".", "rw"); paddkey("fff", "yyy", pdbp); paddkey("zzz", "zzz", pdbp); closepdb(pdbp); exit(0); } Tpaddkey.sh 418870171 968 27 100755 147 ` #!/bin/csh -f # # paddkey() # cp Ipaddkey T_INPUT Tpaddkey cat T_INPUT |& diff - Opaddkey set diffstatus = $status rm -f T_INPUT exit($diffstatus)