22 Apr
2004
22 Apr
'04
19:57
Hallo, Am Thu, 22 Apr 2004, Jan Trippler schrieb:
find . -type f -name '*.JPG' -print | while read I; do mv "$I" "`echo $I | sed 's/.JPG/.jpg/'`" done
BTW: Den sed kannst Du durch basename ersetzen, spart ne Pipe ein: mv "$I" "`basename \"$I\" .JPG`.jpg"
Die Loesung mit der bash kam ja auch schon. Aber wie waere's mit: find . -type d -print | while read dir; do pushd "$dir" mmv '*.JPG' '#1.jpg' popd done -dnh -- If you haven't got time to RTFM, you haven't got time to whine on this mailing list.