首页 > 代码库 > shell

shell

1.获得当前运行脚本目录

 

1 #!/bin/bash2 3 CURR_DIR=`dirname $0`;4 5 echo $CURR_DIR;
View Code