Re: [SLUG] covert lowercase to uppercase.

2000-11-20 Thread James Wilkinson

This one time, at band camp, Alister Waller said:

I need to convert lowercase filenames to uppercase.
its actually on a SCO box so something kinda generic would be nice.

for i in *; do mv "$i" "`echo $i | tr 'a-z' 'A-Z'`"; done

bourne shell and derivatives.

-- 
 "This is not an attack! It is a pre-emptive retaliation."
(o_ '
//\  
v_/_


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



[SLUG] covert lowercase to uppercase.

2000-11-19 Thread Alister Waller

hi,

I need to convert lowercase filenames to uppercase.
its actually on a SCO box so something kinda generic would be nice.

regards



Alister Waller (B. Comp)
Technical Consultant - Roadtech Systems Ltd
Phone: 02 98073516 Fax: 02 98085294
www.roadtechsystems.com.au



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] covert lowercase to uppercase.

2000-11-19 Thread John Ryland


maybe something like this might do the trick:

ls | while read NAME; do mv "$NAME" "`echo $NAME | tr [A-Z] [a-z]`"; done

(It works from my bash shell, I can't see why it won't work from other shells 
too)

Regards
John


On Monday 20 November 2000 16:44, Alister Waller wrote:
 hi,

 I need to convert lowercase filenames to uppercase.
 its actually on a SCO box so something kinda generic would be nice.

 regards



 Alister Waller (B. Comp)
 Technical Consultant - Roadtech Systems Ltd
 Phone: 02 98073516 Fax: 02 98085294
 www.roadtechsystems.com.au


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug