View Single Post
Old 10-06-2012, 02:17 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,588
Quote:
Originally Posted by CYF View Post
that will not work.

This works:

ls *.JPG | awk '{print("mv "$1" "$1)}' | sed 's/JPG/jpg/2' | /bin/sh
Code:
for f in *.JPG; do mv ${f%JPG}{JPG,jpg}; done
will also work
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script / Gallery Scraper / WPXXX Theme / Free Templates
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote