Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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"   
Source by code-maven.com #
 
PREVIOUS NEXT
Tagged: #shell #relatives #path
ADD COMMENT
Topic
Name
7+8 =