moving custom directory to under generated folder
[feisty_meow.git] / scripts / files / remove_bracket_id.sh
1
2
3 file=$1
4
5 if [ -z "$file" ]; then
6   echo "need a parameter that's a file to remove the id from the name."
7   exit 3
8 fi
9
10 newname="$(echo "$file" | sed -e 's/\([^[ ]*\) \[[a-z0-9A-Z-]*\]/\1/')"
11
12 mv "$file" "$newname"
13