File Name Handling in bash: Difference between revisions
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
=Absolute Path for a File= | =Absolute Path for a File= | ||
<syntaxhighlight lang="bash"> | |||
local dir=$(cd $(dirname $0)/..; pwd) | |||
basename ${dir} | |||
</syntaxhighlight> |