deletion and replacement of strings in bash

I try to record useful one-liners for future reference. I forgot to write down what this one does: mv $f ${f##START}.${f%%${f##START}} This awkwardly-timed (time-zone troubles) blog post is atonement for my carelessness. Like all one-liners it looks complicated but is pretty simple. It does this: > f …