How to exclude a directory within a path

(imported topic written by jrbast)

How can I exclude the directory “oam” in this example

Q: (files “cacert.pem” of folders “simpleCA” of folders “openssl” of folders “tools” of folders “oblix” of folders “access” of folders of folders “oracle” of folders “/opt”)

A: /opt/oracle/oam/access/oblix/tools/openssl/simpleCA/cacert.pem

A: /opt/oracle/webgate/access/oblix/tools/openssl/simpleCA/cacert.pem

(imported comment written by jrbast)

(files “cacert.pem” of folders “simpleCA” of folders “openssl” of folders “tools” of folders “oblix” of folders “access” of folders of folders “oracle” of folders “/opt”) whose (sha1 of it != (sha1 of file “/opt/software/Quest/oam/prod/cacert.pem”) and ( pathname of it does not contain “oam”))

(imported comment written by jgstew)

files “
cacert.pem
” of folders "
access/oblix/tools/openssl/simpleCA"
of folders whose(name of it != “oam”) of folders “
/opt/oracle”