Horje
shell relatives path Code Example
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"   




Shell

Related
clear history powershell Code Example clear history powershell Code Example
install pyautogui Code Example install pyautogui Code Example
grep extract only matched string Code Example grep extract only matched string Code Example
install xampp server on windows 10 Code Example install xampp server on windows 10 Code Example
git fork Code Example git fork Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10