What if you want to rename all Folder.jpeg files in your library to
folder.jpg

Then use this:


Code:
--------------------
    
  #!/bin/bash
  #
  LIBRARY=/library/music
  OLD=Folder.jpeg
  NEW=folder.jpg
  #
  find $LIBRARY  -name $OLD  | while read filename ; do mv "$filename" "`echo 
$filename | sed "s/$OLD/$NEW/"`"; done
  
--------------------


-- 
tingtong5
------------------------------------------------------------------------
tingtong5's Profile: http://forums.slimdevices.com/member.php?userid=9671
View this thread: http://forums.slimdevices.com/showthread.php?t=69324

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to