Re: Script to rename all filenames in a directory to use ALL…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Jones
Date:  
To: Main PLUG discussion list
Subject: Re: Script to rename all filenames in a directory to use ALL CAPITAL LETTERS
$ ls -l
total 0
-rw-r--r-- 1 root root 0 2009-04-07 13:23 2009-4_5_WaDAq_a.Dn.23.f

for file in `ls`; do mv -v $file `echo $file| tr '[:lower:]'
'[:upper:]'`; done
`2009-4_5_WaDAq_a.Dn.23.f' -> `2009-4_5_WADAQ_A.DN.23.F'

-Charles
wayne wrote:
> Its probably simple, but would take me a week....
>
> Ie:
> Make: 2009-4_5_WaDAq_a.Dn.23.f
> INTO: 2009-4_5_WADAQ_ADN.23.F
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>



--
___________________________
Charles R. Jones II
IT Team Lead/Senior Systems Engineer
Cisco Learning Institute IT Dept
work: 602.343.1534 cell: 602.738.9993


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss