You are not logged in.
Pages: 1
Hi,
I come from debian background. I am used to rename the files in the following way on my debian system
rename 's/foo/bar/g' *foo*
Now, on my ARCH system there is a rename command but if I try the above command it does nothing.
Are there 2 different versions of rename ?
Which one should I install if I want the mentioned functionality ?
thanks,
Offline
The debian/ubuntu version uses a perl replace method.....arch uses a different method.....
[jim@myhost etc]$ man rename
RENAME(1) Linux Programmer's Manual RENAME(1)
NAME
rename - Rename files
SYNOPSIS
rename from to file...
DESCRIPTION
rename will rename the specified files by replacing the first occurrence of from in
their name by to.
For example, given the files foo1, ..., foo9, foo10, ..., foo278, the commands
rename foo foo0 foo?
rename foo foo0 foo??
will turn them into foo001, ..., foo009, foo010, ..., foo278.
And
rename .htm .html *.htm
will fix the extension of your html files.
SEE ALSO
mmv(1), mv(1)
1 January 2000 RENAME(1)
(END)
My Linux & Progamming Blog - Jimmy Burnett
Offline
Give what you have. To someone, it may be better than you dare to think.
Offline
Pages: 1