sh脚本获取当前目录

#!/bin/bash
curDir=$(pwd)
echo "cur dir is:$curDir"

原文地址:https://www.cnblogs.com/yuandaozhe/p/5724873.html