bash中取得当前脚本的绝对路径

    技术2022-05-19  46

    #!/bin/bash path=`pwd` echo $path path=`dirname $0`  (注意,是键盘左上角的”后引号” 而不是”单引号”)


    最新回复(0)