AIX 截取及拼接字符串命令

发布时间:2018-06-30 20:26:09   来源:文档文库   
字号:

190.

#!/bin/sh

#parameter

if [ $# -ne 1 ];then

exit 1

else

etldt01=${1}

echo "etldt01={etldt01}"

fi

etldt10=$( expr substr "${etldt01}" 1 4)"-"$( expr substr "${etldt01}" 5 2)"-"$( expr substr "${etldt01}" 7 2)

echo "${etldt10}"

本文来源:https://www.2haoxitong.net/k/doc/90aace6316fc700abb68fcf7.html

《AIX 截取及拼接字符串命令.doc》
将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档

文档为doc格式