linux shell 字符串拼接方法

linux shell 字符串拼接方法,第1张

CROSS_COMPILE=arm-openwrt-linux-muslgnueabi-

echo $CROSS_COMPILE

方法1:

    test1=$(echo $CROSS_COMPILE)gcc

    echo $test1

方法2:

    test2=${CROSS_COMPILE}gccabc

    echo $test2

root_path=os.path.abspath(os.path.abspath(os.path.dirname(__file__)).split("flash")[0]+"/flash/app//")

configpath=os.path.join(root_path,"Kit/my_public_funds/conf/conf.ini")

split(s,a,fs) 以fs为指定分隔符将字符串s分割成一个数组a awk 'BEGIN{print split("aswd|sawa|eee",Ti,"|"),Ti[1]}'


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/7234708.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-03
下一篇 2023-04-03

发表评论

登录后才能评论

评论列表(0条)

保存