I am trying tro change the suffix of files that end in .a.b to .b I tried (to echo first): for f in *\.a\.bl; do echo ${f#\.a\}.b; done