Re: batch rename

2008-01-07 Thread Colin Brace
On Jan 5, 2008 6:34 AM, Jeff Laine [EMAIL PROTECTED] wrote: My goal is to rename several files in such a way as to decapitalize starting letters in their names. The solution seems to be simple but I'm stuck. What should I use? awk/sed or write some shell-script? If you want to forsake the

Re: batch rename

2008-01-07 Thread Jim Bow
Jeff Laine wrote: My goal is to rename several files in such a way as to decapitalize starting letters in their names. The solution seems to be simple but I'm stuck. What should I use? awk/sed or write some shell-script? I found myself at this point once too, and then I discovered

Re: batch rename

2008-01-05 Thread Dan Nelson
In the last episode (Jan 05), Jeff Laine said: My goal is to rename several files in such a way as to decapitalize starting letters in their names. The solution seems to be simple but I'm stuck. What should I use? awk/sed or write some shell-script? Best way is with ports/misc/mmv: mmv ?*

Re: batch rename

2008-01-05 Thread Michel Talon
$i `echo $i|tr 'A-Z' 'a-z'` end This will disfunction if the names have embedded white spaces. I happen to batch rename songs etc. which almost invariably have white spaces and other horrors. So i use something like mv $i `echo $i|sed -e 's/ */_/g' -e '.' ` Sed has the advantage you can do

Re: batch rename

2008-01-05 Thread Michael P. Soulier
On 05/01/08 Aryeh M. Friedman said: This assumes tcsh: foreach i (`ls [A-Z][a-z]*`) mv $i `echo $i|tr 'A-Z' 'a-z'` end sh version: for i in * do mv $i `echo $i | tr 'A-Z' 'a-z'` done Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and

batch rename

2008-01-04 Thread Jeff Laine
Hi to all. My goal is to rename several files in such a way as to decapitalize starting letters in their names. The solution seems to be simple but I'm stuck. What should I use? awk/sed or write some shell-script? TIA -- --Jeff-- ___

Re: batch rename

2008-01-04 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff Laine wrote: Hi to all. My goal is to rename several files in such a way as to decapitalize starting letters in their names. The solution seems to be simple but I'm stuck. What should I use? awk/sed or write some shell-script? This assumes

Re: batch rename

2008-01-04 Thread Jeff Laine
On 05/01/2008, Aryeh M. Friedman [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff Laine wrote: Hi to all. My goal is to rename several files in such a way as to decapitalize starting letters in their names. The solution seems to be simple but I'm stuck.

Re: batch rename

2008-01-04 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shantanoo Mahajan wrote: On 05-Jan-08, at 11:31 AM, Aryeh M. Friedman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff Laine wrote: Hi to all. My goal is to rename several files in such a way as to decapitalize starting letters in

Re: batch rename

2008-01-04 Thread Shantanoo Mahajan
On 05-Jan-08, at 12:16 PM, Aryeh M. Friedman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shantanoo Mahajan wrote: On 05-Jan-08, at 11:31 AM, Aryeh M. Friedman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff Laine wrote: Hi to all. My goal is to rename several files

Re: batch rename

2008-01-04 Thread Shantanoo Mahajan
On 05-Jan-08, at 11:31 AM, Aryeh M. Friedman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff Laine wrote: Hi to all. My goal is to rename several files in such a way as to decapitalize starting letters in their names. The solution seems to be simple but I'm stuck. What should I

Re: Shell script--batch rename files

2003-10-08 Thread Steve D
mvb (MV-Batch shell script) To the several people who wrote to me about my batch-rename shell script, and anyone else who may be interested, I have worked a lot on it the past few days and the latest version (1.5.5) and a screenshot and README is at: http://www.xscd.com/pub/mvb/ I'll try

Shell script--batch rename files

2003-10-06 Thread steve
shell-script-begins-on-next-line--- #!/bin/sh # # Change the path above to point to the location on # your computer of either the Bourne shell (sh) or # the BASH (Bourne Again) shell (bash). # # This shell script was written to batch rename