From 5d33822cf66c8320b044ba9d7a085206ed2550d1 Mon Sep 17 00:00:00 2001 From: psachin Date: Wed, 31 Jul 2013 17:42:19 +0530 Subject: Subject:BUGFIX: sorting Description: 1) error in sorting if the file name starts with 'Example2_3.sce' OR 'example2_3.sce' instead of '2_3.sce' --- auto.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'auto.sh') diff --git a/auto.sh b/auto.sh index 6e01b6a..f1ff99b 100755 --- a/auto.sh +++ b/auto.sh @@ -69,6 +69,8 @@ function scan_sce_for_errors() { SCE_FILE_LIST=$(find ${ZIPFILE} -type f -iname "*.sce" ! \ -path "*/DEPENDENCIES*" | \ awk -vFS=/ -vOFS="." '{print $NF,$0}' | \ + sed 's/^[[:upper:]]*//g' | \ + sed 's/^[[:lower:]]*//g' | \ sort -n -t _ -k1 -k2 | cut -d"." -f3-) SCE_FILE_COUNT=$(echo "${SCE_FILE_LIST}" | wc -l) -- cgit