Bash 笔记

获取当前工作目录

basepath=$(cd `dirname $0`; pwd)

源文 : https://sexywp.com/bash-how-to-get-the-basepath-of-current-running-script.htm

 

posted @ 2017-06-09 16:48  NewSea  阅读(151)  评论(0编辑  收藏  举报