Re: lowercase to uppercase

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You are on the right track. 

try this:

#!/bin/bash
for f in *; do
	newname=`echo $f|tr a-z A-Z:`
	mv $f $newname
done

Naturally, you will need the proper permissions to rename the files.

On Saturday 01 November 2003 12:06 pm, RedHat wrote:
Hello.
I am looking for a way to permanently change  the contents of a
directory from lowercase to uppercase.
If I input the command:

echo *.* | tr a-z A-Z

it outputs a list of the files in uppercase but doesn't actually change
them.
Can anybody help out?
Thanks

-- 
rm -rf /bin/laden
Do it now and often!


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux