[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-user] OT: Wildcard renaming of files



Hi!

>--[Martin Fluch]--<fluch@rock.helsinki.fi>
> A little bit bash programming...
> for $i in *.html ; do mv "$i" "${i:0:${#tmp}-1}" ; done

for $f in *.html; do mv $f ${f/.html/.htm}; done

Requires a not too old bash. Beware of file names containing .html elsewhere
than at the end...

Yours, Rüdiger.

-- 
   http://www.ruediger-kuhlmann.de/



Reply to: