📜  shell 亲属路径 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:44.979000             🧑  作者: Mango

代码示例1
#!/bin/bash 
echo $0 
full_path=$(realpath $0)
echo $full_path 
dir_path=$(dirname $full_path)
echo $dir_path 
examples=$(dirname $dir_path )
echo $examples 
data_dir="$examples/data"
echo "DATA: $data_dir"