sajad torkamani
current_dir=$(dirname "$0")

echo '--------------------------------------------------'
echo "The directory of the current file is $current_dir"
echo '-------------------------------------------------------'
Tagged: Bash