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 -->
#
2
(
permalink
)
06-28-2005
rahul123_libra
Registered User
Join Date: May 2005
Posts: 46
Use awk
for old_name in `ls -l path_to_dir/*jpg`
do
new_name=`awk -F"-" 'BEGIN { OFS="-"} {$3=toupper($3);print $0}' $old_name`
mv $old_name $new_name
done
Last edited by rahul123_libra; 06-28-2005 at
10:37 AM
..
rahul123_libra
View Public Profile
Find all posts by rahul123_libra
Find rahul123_libra's past nominations received
Find rahul123_libra's present nominations given