Hi Folks,
I'm trying to rename a number of files using the Mult-rename tool. Here's short list of the files (the format of the digits is dd.mm.yyyy and I'd like to have yyyy.mm.dd):
10.06.2004_Test.data
10.09.2004_Test.data
11.06.2004_Test.data
11.10.2004_Test.data
The "Rename mask: file name" and "Extention" fields are empty.
"Search for:" is "(\d{2})\.(\d{2})\.(\d{4})(.*)" and
"Replace with:" is $3.$2.$1$4
When I click Start I get the message: "Error, could not rename the files shown in bold"
Is this a bug or am I doing something wrong?
Thom
Bug: Regular expressions & Multi-rename tool
Moderators: Hacker, petermad, Stefan2, white
A-ha!!!
Hi djk,
that was it! Actually it is logical. I do the same thing in Solaris.
for I in `ls`
do
J=`echo $I | sed 's/\([0-9]\{2\}\)\.\([0-9]\{2\}\)\.\([0-9]\{4\}\)\(.*\)/\3\.\2\.\1\4/g'`
echo "cp $I out/$J"
cp $I out/$J
done
We always say, "no sooner than you do something right, than it works".

Many thanks!
Thom
that was it! Actually it is logical. I do the same thing in Solaris.
for I in `ls`
do
J=`echo $I | sed 's/\([0-9]\{2\}\)\.\([0-9]\{2\}\)\.\([0-9]\{4\}\)\(.*\)/\3\.\2\.\1\4/g'`
echo "cp $I out/$J"
cp $I out/$J
done
We always say, "no sooner than you do something right, than it works".

Many thanks!
Thom
He how can read...
Hi vlado,
I saw that yesterday after the first reply to my posting.
He who can read...
clearly has an advantage
Thanks anyway
Thom

He who can read...
clearly has an advantage

Thanks anyway
Thom