On Fri, Jul 24, 1998 at 12:56:02PM -0700, Steve Lamb wrote:
On Fri, 24 Jul 1998 21:28:25 +0200, Marcus Brinkmann wrote:
So what?
Didn't you saw the -i option he supplied to the mv command?
That's why Eric's solution works :P
If that is the case then why not just do it all by hand in
SVD == Santiago Vila Doncel [EMAIL PROTECTED] writes:
SVD (But just because I love awk, a perl hacker would surely give you a
SVD different solution, and a Bourne-shell hacker yet another one, etc. :-).
Here is the perl hacker ;-)
perl -MFile::Copy -e 'for (@ARGV) {move $_, lc $_}' *.c
mmv is
*-Martin Bialasinski (24 Jul)
|
|
| mmv is cool, but has no lowercase function.
|
From the mmv man page:
To convert the string matched by a wildcard to either low
ercase or uppercase before embedding it in the target
name, insert 'l' or 'u', respectively, between
s == servis [EMAIL PROTECTED] writes:
s *-Martin Bialasinski (24 Jul)
s | mmv is cool, but has no lowercase function.
From the mmv man page:
[...]
*blush* OK, just delete everything after cool.
Perl rules anyway ;-)
Ciao,
Martin
--
Unsubscribe? mail -s unsubscribe [EMAIL
Is there a simple way to change all filenames in a directory so they
are lowercase?
1 cat /usr/local/bin/rename
#!/usr/bin/perl -Tw
use locale;
# usage: rename perlexp [files]
($op = shift) || die Usage: $0 perlexp [filenames]\n;
if ([EMAIL PROTECTED]) {
@ARGV = STDIN;
chop(@ARGV);
}
On 24 Jul 1998, Joerg Plate wrote:
Is there a simple way to change all filenames in a directory so they
are lowercase?
1 cat /usr/local/bin/rename
#!/usr/bin/perl -Tw
use locale;
[...]
Why not, in bash:
for f in $(ls); do
oldName=$f
newName=$(echo $oldName | tr [A-Z] [a-z])
mv -i
On Fri, 24 Jul 1998 11:09:41 -0700 (PDT), Eric House wrote:
Why not, in bash:
for f in $(ls); do
oldName=$f
newName=$(echo $oldName | tr [A-Z] [a-z])
mv -i $oldName $newName
done
[EMAIL PROTECTED]:/home/morpheus/t}ls -la
total 4
drwxr-xr-x 2 morpheus users1024 Jul 24 11:22 .
On Fri, Jul 24, 1998 at 11:20:19AM -0700, Steve Lamb wrote:
On Fri, 24 Jul 1998 11:09:41 -0700 (PDT), Eric House wrote:
Why not, in bash:
for f in $(ls); do
oldName=$f
newName=$(echo $oldName | tr [A-Z] [a-z])
mv -i $oldName $newName
done
[EMAIL PROTECTED]:/home/morpheus/t}ls -la
On Fri, 24 Jul 1998 21:28:25 +0200, Marcus Brinkmann wrote:
So what?
Didn't you saw the -i option he supplied to the mv command?
That's why Eric's solution works :P
If that is the case then why not just do it all by hand in the first
place? Sheesh.
--
Steve C. Lamb
Please excuse this lame non Debian specific question. Is there a simple
way to change all filenames in a directory so they are lowercase? I would
like to change all the *.cpp and *.h files in a project directory to be
lowercase letters only. I know this seems like a lame task but it would
Please excuse this lame non Debian specific question. Is there a simple
way to change all filenames in a directory so they are lowercase? I would
like to change all the *.cpp and *.h files in a project directory to be
lowercase letters only. I know this seems like a lame task but it would
On Thu, 23 Jul 1998, Jack A Walker wrote:
Please excuse this lame non Debian specific question. Is there a simple
way to change all filenames in a directory so they are lowercase? I would
like to change all the *.cpp and *.h files in a project directory to be
lowercase letters only. I know
On 23-Jul-98 Jack A Walker wrote:
Please excuse this lame non Debian specific question. Is there a simple
way to change all filenames in a directory so they are lowercase? I would
like to change all the *.cpp and *.h files in a project directory to be
lowercase letters only. I know this
*-Jack A Walker (23 Jul)
| Please excuse this lame non Debian specific question. Is there a simple
| way to change all filenames in a directory so they are lowercase? I would
| like to change all the *.cpp and *.h files in a project directory to be
| lowercase letters only. I know this seems
-BEGIN PGP SIGNED MESSAGE-
On Thu, 23 Jul 1998, Jack A Walker wrote:
Please excuse this lame non Debian specific question. Is there a simple
way to change all filenames in a directory so they are lowercase?
I would do this:ls | awk '{ system(mv $0 tolower($0)) }'
(But just
15 matches
Mail list logo