#!/bin/bash work_dir=$(cd $(dirname $0);pwd) echo $work_dir
[Linux]Shell编程【待续】
原文:https://www.cnblogs.com/johnnyzen/p/15067593.html