On Fri, 3 Mar 2000, Gary Bunker wrote:

-> I used to know how to do this, but now my brain is full.
-> 
-> How can I change the case, or extension of a lot of files at once.  For
-> example, I have a directory of BMPs that a friend sent from his digital
-> camera (yeah, I know, bad format, but it's not me).  I want to make
-> them all bmp instead of BMP extensions.  I can't remember how, although
-> I recall it was something simple.

bash# for i in `echo *.BMP`; do mv $i `echo $i | sed s/.BMP/.bmp/`; done

HTH
+--------------------------------------------------------------------+
| d a v i d  @  m i h m                         reality.sys corrupt! |
|     dmihm  @  rchitecture.com                reboot universe(y,n)? |
|     dmihm  @  swbell.net                                           |
| webmaster  @  afterstep.org                             ICQ:906859 |
| ftpmaster  @  afterstep.org                    www.rchitecture.com |
+--------------------------------------------------------------------+

Reply via email to