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

Re: Batch rename files



Quoting Arcady Genkin (a.genkin@utoronto.ca):
> What would be the easiest way to rename a bunch of files
> 
> foo-[0-9]-bar-[0-9][0-9].txt
> 
> into
> 
> blah-[0-9]-[0-9][0-9].txt
> 
> Note, that all of the files have identical portions `foo-', `-bar-',
> and `.txt' in the filenames. Different are two numerical parts.

If you use mc, you can select the files with + and type
foo-[0-9]-bar-[0-9][0-9].txt in the box, then rename (RenMov, F6,
with Using Shell Patterns checked) and type foo-*-bar-*.txt and
blah-\1-\2.txt in the boxes.

Cheers,

-- 
Email:  d.wright@open.ac.uk   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Reply to: