for x in *.avi; do mv "$x" "$(echo $x | sed -e 's/\[.*\]//g' | sed -e 's/(.*)//g')"; done