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.
This commit is contained in:
parent
28c6e7c103
commit
10e14b41cc
6
convert-()-to-[].bash
Normal file
6
convert-()-to-[].bash
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
for f in *; do
|
||||||
|
newname=$(echo "$f" | sed 's/(\([^)]*\))/[\1]/')
|
||||||
|
[ "$f" != "$newname" ] && mv -- "$f" "$newname"
|
||||||
|
done
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user