Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
157 B
1
Indexable
Never
#!/bin/bash

for file in *.sfc; do
    new_name=$(echo "$file" | sed -E 's/^[0-9]+\. (.*) \([A-Za-z, ]+\)\.sfc/\1.sfc/')
    mv "$file" "$new_name"
done