TubeArchivist-Scripts/convert-()-to-[].bash
sickprodigy 10e14b41cc initialize file, converting
20170311 (5XtCZ1Fa9ag) Terry A Davis Live Stream
20170311 [5XtCZ1Fa9ag] Terry A Davis Live Stream, usually needed at the end so if it's already at the end you are a lot closer than most.
2025-10-21 18:48:06 -04:00

7 lines
134 B
Bash

#!/bin/bash
for f in *; do
newname=$(echo "$f" | sed 's/(\([^)]*\))/[\1]/')
[ "$f" != "$newname" ] && mv -- "$f" "$newname"
done