.key IN/A,OUT/A
.bra [
.ket ]

gs -q -dNOPAUSE -dNODISPLAY ps2epsi.ps < [IN]

Echo "/InitDictCount countdictstack def gsave save mark newpath" >> [OUT]

type [OUT] >> [IN]

Echo "countdictstack InitDictCount sub { end } repeat" >> [OUT]
Echo "cleartomark restore grestore" >> [OUT]
