rename v. script

Alexander Dalloz ad+lists at uni-x.org
Fri May 20 02:45:24 UTC 2005


Am Fr, den 20.05.2005 schrieb Matt Arnilo S. Baluyos (Mailing Lists) um

> very useful discussion here.

You can find plenty of (shell) scripting tips on the WWW. A good
resource is certainly the "Advanced Bash-Scripting Guide"

http://www.tldp.org/LDP/abs/html/

And a google search for a specific thing may be

http://www.google.com/search?hl=en&lr=&c2coff=1&q=rename+files+find+xargs&btnG=Search

> how about different ways of renaming *.JPG files to *.jpg? (i.e.
> change to the file extension to lowercase while retaining the file
> name)

for i in *.JPG; do
   mv ${i} ${i%JPG}jpg
done

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.14_FC2smp 
Serendipity 04:45:01 up 6 days, 4:17, load average: 0.44, 0.24, 0.48 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050520/f0e6b856/attachment-0001.sig>


More information about the fedora-list mailing list