aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/OS400/initscript.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/OS400/initscript.sh b/packages/OS400/initscript.sh
index 97e978158..d28a8db11 100644
--- a/packages/OS400/initscript.sh
+++ b/packages/OS400/initscript.sh
@@ -157,6 +157,10 @@ db2_name()
basename "${1}" |
tr 'a-z-' 'A-Z_' |
sed -e 's/\..*//' \
+ -e 's/\([^_]\)[^_]*_\(.*\)/\1\2/' \
+ -e 's/\([^_]\)\([^_]\)[^_]*_\(.*\)/\1\2\3/' \
+ -e 's/\([^_]\)\([^_]\)\([^_]\)[^_]*_\(.*\)/\1\2\3\4/' \
+ -e 's/\([^_]\)\([^_]\)\([^_]\)\([^_]\)[^_]*_\(.*\)/\1\2\3\4\5/' \
-e 's/^\(..........\).*/\1/'
}