[Gllug] Changing case on filenames
Nix
nix at esperi.demon.co.uk
Sat Mar 9 18:11:38 UTC 2002
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.
--
`Frankly I wonder whether you are not writing your posts from underneath a
bridge.' --- Jason Clifford, to a particularly dense troll
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list