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

UPPER to lowercase.



I'm trying to get this bash script working which converts filenames from
UPPER to lowercase. 

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

It comes back with 'when moving multiple files, last argument must be a
directory.' I thought this was a loop, so how come it moves multiple files?
Any ideas how to get this working? tnx --hans


Reply to: