From: Chris Koeritz Date: Sun, 12 May 2013 17:21:25 +0000 (-0400) Subject: updated to strip out the nutty pattern we get from turning ' - ' into '_-_', where we X-Git-Tag: 2.140.90~986 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=be3aeb6e2ad005f0f521cab4d56c876149ca2438;p=feisty_meow.git updated to strip out the nutty pattern we get from turning ' - ' into '_-_', where we really only want the dash left behind. --- diff --git a/scripts/files/spaces_to_underscores.sh b/scripts/files/spaces_to_underscores.sh index 07b8a1c0..b9682c67 100644 --- a/scripts/files/spaces_to_underscores.sh +++ b/scripts/files/spaces_to_underscores.sh @@ -12,7 +12,7 @@ fi while [ $# -gt 0 ]; do file="$1"; shift - newname="$(echo "$file" | tr -s ' ' '_' | tr -d "\~'" | sed -e 's/\([0-9]\)_\./\1./g' )" + newname="$(echo "$file" | tr -s ' ' '_' | tr -d "\~'" | sed -e 's/\([0-9]\)_\./\1./g' | sed -e 's/_-_/-/' )" if [ "$file" != "$newname" ]; then # we've effected a name change, so let's actually do it. echo "moving '$file' => '$newname' "