[Gllug] Changing case on filenames
Alain Williams
addw at phcomp.co.uk
Tue Mar 5 15:15:04 UTC 2002
On Tue, Mar 05, 2002 at 02:54:32PM +0000, Colin Murphy wrote:
> On Tuesday 05 March 2002 10:11 am, Alain Williams wrote:
> > On Tue, Mar 05, 2002 at 09:58:38AM +0000, Rob Andrews wrote:
> > > [05-Mar-2002 00:47.41 (GMT) / Mike Brodbelt]
> > >
>
> > Worst are some printers that do not distinguish between the two sorts of
> > quotes, ie the glyphs are the same. I get the impression that one of the
> > PostScript fonts does this.
> >
> > That is part of the reason that I avoid using back quotes in scripts and
> > always use $( command ... )
> > instead. The semantics are slightly improved as well.
>
> Alain, would you like to give an example, using the the previous script as
> an example but using the $( command ... ) please.
Oh, that is long deleted ..., but
for file in *
do newfile=$( echo "$file" | tr '[A-Z]' '[a-z]' )
[[ $newfile = $file ]] && continue
mv "$file" "$newfile"
done
--
Alain Williams
#include <std_disclaimer.h>
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list