1753969 Members
7162 Online
108811 Solutions
New Discussion юеВ

Re: Rename file

 
SOLVED
Go to solution
curt larson_1
Honored Contributor

Re: Rename file

just another way

ls payee*.dat |
sed 's/\(payee\)\(.*.dat\)/\1\2\
\1_plan\2/' |
xargs -i -t -n2 mv
Muthukumar_5
Honored Contributor

Re: Rename file

Hai,

We can do it with a simple script.

ext=".dat"
name="payee"
new="payee_plan"
i=1

while [[ $i -lt 10001 ]]; do
mv $name$i$ext $new$i$ext
let i=i+1
done

Regards,
Muthukumar
Easy to suggest when don't know about the problem!
jonathan2
Visitor

Re: Rename file

There are many ways to do this but I always use very simple software and works with all platform. For checking this software go to google and type- BatchRenameFiles Tool. Check the first result.