it is said that diamond can only be cut by diamond. But how is the diamond shaped to cut a diamond, when only diamond can cut diamond
You rightly said diamonds can cut diamonds. However a sharp steel blade or laser can also be used to cut diamonds along its weak edges (diamond's tetrahedral plane).
Diamond can also be cut using the sharp edge of another diamond.