Answers for "shell relatives path"

0

shell relatives path

#!/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"   
Posted by: Guest on April-23-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language