get absolute path of current script

PHOTO EMBED

Tue May 30 2023 15:22:35 GMT+0000 (Coordinated Universal Time)

Saved by @vs #bash

script_path=$(readlink -f "${BASH_SOURCE[0]}")
echo "Absolute path of the current script: $script_path"
content_copyCOPY