Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/rc/bin/ren
#!/bin/rc # rename files # Fri Nov 19 07:40:26 EST 2004 Peter A. Cejchan <cej@gli.cas.cz | pac7@post.cz | pac@plan9.cz> # usage: ren filepattern 's/old/new' rfork e for(i in $1) { newname = `{echo $1 | sed $2} mv $i $newname } #-eof-