[Gllug] Changing case on filenames

Alain Williams addw at phcomp.co.uk
Tue Aug 6 10:41:28 UTC 2002


On Sat, Mar 09, 2002 at 06:11:38PM +0000, Nix wrote:
> On Tue, 5 Mar 2002, Alain Williams said:
> > 	do	newfile=$( echo "$file" | tr '[A-Z]' '[a-z]' )
> > 		[[ $newfile = $file ]] && continue
> 
> Note that these cases are very different. In [[ ]], the spaces around
> the [[ and ]] elements are necessary; but in $( ) they are not, viz
> 
> newfile=$(echo "$file" | tr '[A-Z]' '[a-z]')
> 
> is perfectly valid.

Yes: but is it as readable ?

-- 
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