[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting filenames to lowercase in a directory



>  find . -type f -maxdepth 1|while read f; do f2=`echo $f|tr a-z a-z`;mv '$f'
> '$f2';done

mike,
	shouldn't this be:

find . -type f -maxdepth 1|while read f; do f2=`echo $f|tr A-Z a-z`;mv
'$f' '$f2';done

so that it will transform the uppers into lowers?

unless tr is assuming from your a-z that it wants all char type alphas.
anyways, i need coffee.  bye bye.

tighe

-- 
Tighe		w00t		blumnky
	"I am anger incarnate."
	"Oh yeah?  I toss poo."


-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.