Untitled
plain_text
a month ago
178 B
1
Indexable
Never
#!/bin/bash shopt -s nullglob 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
#!/bin/bash shopt -s nullglob 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