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
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
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 ?*
$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
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
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--
___
-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
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.
-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
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
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
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-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
13 matches
Mail list logo