The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Need to change filenames in a particular directory from lowercase to UPPERCASE
.
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
:
Need to change filenames in a particular directory from lowercase to UPPERCASE
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
01-04-2008
cassj
Supporter
Join Date: Jul 2003
Location: Interweb
Posts: 109
Give this a shot. This will change ALL filenames in the current directory from lower to UPPER.
Code:
cd /path/to/your/files for file in * ; do mv $file `echo $file |
sed
's/\(.*\)/\U\1/'` ; done
cassj
View Public Profile
Find all posts by cassj
Find cassj's past nominations received
Find cassj's present nominations given