String interception and assignment reference in linux shell script

      mkdir -p /data/www/flowbilling/`echo ${arr[0]%/*}|sed 's/\/home\/www\/flowbilling-report\/TuikuanIamges\///g'`

Delete the number with subscript 0 in the arr array and delete all the values ​​after the last "/".
Delete the URL path in the string. Pay attention to the escape character

Guess you like

Origin blog.csdn.net/weixin_44578029/article/details/111308473