The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Help with multiple file rename - change case of part of file name
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Help with multiple file rename - change case of part of file name
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
06-30-2005
vibhor_agarwali
Registered User
Join Date: Jan 2005
Posts: 259
Perfectly Agree,
But i could accomplish only that much with my knowledge of
sed
.
Can anyone give a general one with
sed
.
mv is taken for granted.
for filename in *.jpg;
do
newname=`echo $filename |
sed
-e 's/Aiyd/AIYD/g'`
mv $filename newname
done
vibhor_agarwali
View Public Profile
Find all posts by vibhor_agarwali
Find vibhor_agarwali's past nominations received
Find vibhor_agarwali's present nominations given