Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/rc/bin/j2k/topng
#!/bin/rc # make *.png from *.j2k # Wed Mar 30 05:31:29 MET 2005 Peter A. Cejchan <cej@gli.cas.cz | pac7@post.cz> rfork e mkdir $1 for (name in *.j2k) { outname = `{echo $name | sed 's/\.j2k/\.png/g'} j2kto9 $name | topng > $1/$outname } #-eof-