All locations of a certain CID in a CID

what’s the best way to return all locations of a certain CID in a CID ?

Can you rephrase or expand the question? I don’t understand it.

simple , how to search all instances of CID2 in CID1 and return their paths relative to CID1 .
CID2s being in any branch of CID1 as a tree .

ipfs refs -r <cid> + grep

1 Like