Re: Stupid unix

1998-07-25 Thread Marcus Brinkmann
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

Re: Stupid unix

1998-07-24 Thread Martin Bialasinski
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

Re: Stupid unix

1998-07-24 Thread servis
*-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

Re: Stupid unix

1998-07-24 Thread Martin Bialasinski
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

Re: Stupid unix

1998-07-24 Thread Joerg Plate
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); }

Re: Stupid unix

1998-07-24 Thread Eric House
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

Re: Stupid unix

1998-07-24 Thread Steve Lamb
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 .

Re: Stupid unix

1998-07-24 Thread Marcus Brinkmann
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

Re: Stupid unix

1998-07-24 Thread Steve Lamb
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

Stupid unix

1998-07-23 Thread Jack A Walker
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

Re: Stupid unix

1998-07-23 Thread aqy6633
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

Re: Stupid unix

1998-07-23 Thread Michel LESPINASSE
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

RE: Stupid unix

1998-07-23 Thread Ted Harding
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

Re: Stupid unix

1998-07-23 Thread servis
*-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

Re: Stupid unix

1998-07-23 Thread Santiago Vila Doncel
-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