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

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

Leave a comment

Your email address will not be published. Required fields are marked *