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 - PLUG-discuss@lists.plug.phoenix.az.us 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 charles.jo...@ciscolearning.org --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Script to rename all filenames in a directory to use ALL CAPITAL LETTERS
SWEET - THANK YOU! Charles Jones wrote: $ 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 - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Script to rename all filenames in a directory to use ALL CAPITAL LETTERS
Same Idea for i in `find * -depth`; do (mv $i `echo $i|tr [:lower:] [:upper:]`); done James Finstrom Rhino Equipment Corp. http://rhinoequipment.com ~ http://postug.com Phone: 1-877-RHINO-T1 ~ FAX: +1 (480) 961-1826 Twitter: http://twitter.com/rhinoequipment IP: gu...@asterisk.rhinoequipment.com On Tue, Apr 7, 2009 at 1:15 PM, wayne wayda...@cox.net 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 - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Script to rename all filenames in a directory to use ALL CAPITAL LETTERS
nice. I was just putzing with python to solve. :) Charles Jones wrote: $ 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 - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss -- Stephen P Rufle stephen.p.ru...@cox.net H1:480-626-8022 H2:480-802-7173 Yahoo IM: stephen_rufle AOL IM: stephen1rufle --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Script to rename all filenames in a directory to use ALL CAPITAL LETTERS
This is how I was doing it before I saw the one liner snip #!/usr/local/bin/python # ren_to_upper.py import os for fname in os.listdir(os.getcwd()): newfname = fname.upper() os.rename(fname, newfname) /snip --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Re: Script to rename all filenames in a directory to use ALL CAPITAL LETTERS
On Tue, 2009-04-07 at 13:15 -0700, 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 rename 'y/a-z/A-Z/' * --Ted PS - you can put any regular expression in there if you want something more complex. signature.asc Description: This is a digitally signed message part --- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss