name=`basename $PWD`
name=`basename \`pwd\``
name=$(basename $(pwd))
name=`pwd|xargs basename`
echo $name
name=`basename $PWD`
name=`basename \`pwd\``
name=$(basename $(pwd))
name=`pwd|xargs basename`
echo $name
本文标题:【Shell】basename `pwd`存入变量的几种方法
本文链接:https://www.haomeiwen.com/subject/cggkdctx.html
网友评论