Search
 
SCRIPT & CODE EXAMPLE
 

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"   
Comment

PREVIOUS NEXT
Code Example
Shell :: git murge branch with master 
Shell :: mining from cli 
Shell :: get to the root directory /var/lib/docker we must access the docker virtual machine being used on our mac 
Shell :: set image deployment 
Shell :: dash_install 
Shell :: checkout file of different commit 
Shell :: install storybook pseudo states 
Shell :: git log only folder 
Shell :: iron exporting ports 
Shell :: gentoo os-prober 
Shell :: how to delete tempory folder in hpc bash 
Shell :: node execute local bin 
Shell :: publish repositry 
Shell :: chorium cli 
Shell :: how to install numpy for aws sam local 
Shell :: team viewer centos 
Shell :: pacman manager package invalid problem 
Shell :: add mongodb path to bashrc 
Shell :: partially apply stash git 
Shell :: create a screen screen session tmux 
Shell :: linux cut -d add custom text 
Shell :: how to rollback to 20h2 
Shell :: clear the log folder in var linux to a max file of 500M 
Shell :: youtube-dl Video Selection:: 
Shell :: anydesk upgrade sources list 
Shell :: libopusfile.so.0 terminal download 
Shell :: MPIexec command 
Shell :: linux where to install 3rd party driver 
Shell :: linux find folder and exec du 
Shell :: illegal rune literal (and 1 more errors) 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =