On 12-Nov-00 22:25 Colin Watson wrote:

> >> for $i in *.html ; do mv "$i" "${i:0:${#tmp}-1}" ; done
> >
> >for $f in *.html; do mv $f ${f/.html/.htm}; done

> That's what the % flag solves (match only at the end), when put
> immediately after the first / (so ${f/%.html/.htm}). The # flag does the

Or even...

for f in *.html; do mv "$f" "${f%l}"; done

;-).

Reply via email to