[Ilugc] Shell tip : Renaming multiple files.
- From: thescriptdevil@xxxxxxxxx (Ashok Gautham)
- Date: Sun, 1 Jan 2012 18:41:38 +0530
On Wed, Dec 28, 2011 at 08:05:05AM +0530, Pratap Chakravarthy wrote:
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
You can do one better
% rename .css .tss *.css
---
Ashok Gautham
Other related posts: