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

Re: UPPER to lowercase.



On Sun, Apr 02, 2000 at 17:13:33 +0200, Hans wrote:
> for x in *; do mv $x 'echo $x|tr [A-Z][a-z]'; done;

Use
	for x in *; do mv $x `echo $x | tr '[A-Z][a-z]'`; done

Note the backticks and the quoting of the square brackets (to prevent them
from being interpreted by the shell as globbing patterns).

Ray
-- 
UNFAIR  Term applied to advantages enjoyed by other people which we tried 
to cheat them out of and didn't manage. See also DISHONESTY, SNEAKY, 
UNDERHAND and JUST LUCKY I GUESS.     
    - The Hipcrime Vocab by Chad C. Mulligan  


Reply to: