Re: rename v. script

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

 



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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux