肯定當前路徑

#!/bin/sh
mongo_path=$(cd $(dirname $(which mongo)) && pwd)
now_path=$(cd $(dirname $0) && pwd)
echo $mongo_path
echo $now_path
相關文章
相關標籤/搜索