标签:
#!/bin/sh mongo_path=$(cd $(dirname $(which mongo)) && pwd) now_path=$(cd $(dirname $0) && pwd) echo $mongo_path echo $now_path
确定当前路径
原文地址:http://www.cnblogs.com/sayaoailun/p/4708792.html