Add newline before all 2nd and consequent occurrences of '3d3d' in file 'temp' and write each line from the output to files with prefix 'temp' and numeric suffixes
sed 's/3d3d/\n&/2g' temp | split -dl1 - temp