Linda Walsh <[EMAIL PROTECTED]> wrote: > > echo "${{f##*/}%$ext}" (but: -bash: ${{f##*/}%$ext}: bad substitution) > > Do I need to use an intermediate variable
Yes. Unfortunately, the expansion operators work directly on variables - not on arbitrary strings which may contain other expansions. paul