You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
for f in *.pptx; do
|
|
name="${f%.*}" # strip extension
|
|
ext="${f##*.}" # get extension
|
|
newname=$(echo "$name" \
|
|
| tr '[:upper:]' '[:lower:]' \
|
|
| tr ' ' '-' \
|
|
| sed 's/&/and/g' \
|
|
| tr -d '.,()' # remove dots, commas, and parentheses
|
|
)
|
|
mv -- "$f" "$newname.$ext"
|
|
done |