shell脚本中获取当前所在目录以下shell
#!/bin/bash work_path=$(dirname $0) cd ${work_path} work_path=$(pwd) cd ${work_path}/src