From be3aeb6e2ad005f0f521cab4d56c876149ca2438 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 12 May 2013 13:21:25 -0400 Subject: [PATCH] updated to strip out the nutty pattern we get from turning ' - ' into '_-_', where we really only want the dash left behind. --- scripts/files/spaces_to_underscores.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' " -- 2.34.1