[Ilugc] Shell tip : Renaming multiple files.

  • From: prataprc@xxxxxxxxx (Pratap Chakravarthy)
  • Date: Wed, 28 Dec 2011 08:05:05 +0530

Following is an example to rename all .css files under a directory to .tss,

$ for i in *.css; do hg mv "$i" "${i/.css}".tss ; done

Reference : http://www.debian-administration.org/articles/150

Cheers,
-- 
Pratap.

Other related posts: