[Gllug] Changing case on filenames

Simon Stewart sms at lateral.net
Tue Mar 5 11:04:46 UTC 2002


On Mon, Mar 04, 2002 at 09:36:23PM +0000, Gordon Joly wrote:
> 
> >
> > > for file_name in *
> >> do
> >>   cp $file_name `echo $file_name | tr '[A-Z]' '[a-z]'`
> >> done
> 
> which shell?

/bin/bash

seems to work in sh too, but that's prolly just bash in compatability
mode....

sms at lauren:~$ ls -l `which sh`
lrwxrwxrwx    1 root     root            4 Mar  4 12:19 /bin/sh -> bash

Cheers,

Simon

-- 
Actually Perl *can* be a Bondage & Discipline language but it's unique
among such languages in that it lets you use safe words.
    -- Piers Cawley

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list