Thursday, July 19, 2012

Rename multiple files using regular expression

$> for i in *.avi; do j=`echo $i | sed 's/find/replace/g'`; mv "$i" "$j"; done

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.