ASPL Guide to Operations v 1.00
© 2024 by SetSphere.COM
4. 20cD gets the element-checksums symmetric difference
cD a1 a2 [a3 .. aN] where a1 a2 [a3 .. aN] are set variables
cD`mtm~ a1 a2 [a3 .. aN]
cD/mtm~ a1 a2 [a3 .. aN]
cD
When specified by itself then the operation is performed on the object on top of the stack and the one that is one below it, then the result is pushed on the partition stack
tsetop asetoid 2** notcommu ins:H_H_H ous:H_H_AH
Use the operator cD or its equivalent c*D to get the symmetric difference in their checksums.
cD EXAMPLEIn this example we will compare the files between two directories based on their symmetric checksums. File with the different names but with same checksums will be revealed. The symmetric difference of checksums display only these files with unequal checksums.
cD OPERATION# aspl WS1
(start ASPL loading the sample workspace WS1 )
① aspl>
cD a1 a2
(show the symmetric difference checksums between the datasets in a1 and a2)
The cD is the same as c*D
② aspl>
c*D a1 a2
(show the symmetric difference checksums between the datasets in a1 and a2)
Notice that the `mtm~ is reverted to be as 'equal' since it is used in the context of the difference
③ aspl>
cD`mtm~ a1 a2
(show the symmetric difference checksums between the datasets in a1 and a2 whose mtimes are the same)
Notice that the `mtm= is reverted to be as 'unequal' since it is used in the context of the difference
④ aspl>
cD`mtm= a1 a2
(show the symmetric difference checksums between the datasets in a1 and a2 whose mtimes are the different)
● Tickable Predicates for cD
This cD is tickable with predicates that are shown in the following table:
a yellow note
cD`_ gets the element-checksums symmetric difference cD`c= gets the element-checksums symmetric difference such that they have the same checksum cD`c~ gets the element-checksums symmetric difference such that they have different checksums cD`c~~ gets the element-checksums symmetric difference such that they have all over different checksums cD`h= gets the element-checksums symmetric difference such that they have the same entropy cD`h~ gets the element-checksums symmetric difference such that they have different entropies cD`h~~ gets the element-checksums symmetric difference such that they have all over different entropies cD`mtm= gets the element-checksums symmetric difference such that they have the same make time cD`mtm~ gets the element-checksums symmetric difference such that they have different make times cD`mtm~~ gets the element-checksums symmetric difference such that they have all over different make times cD`ks= gets the element-checksums symmetric difference such that they have the same ksum cD`ks~ gets the element-checksums symmetric difference such that they have different ksums cD`ks~~ gets the element-checksums symmetric difference such that they have all over different ksums