代码改变世界

What is dirname 0 and usage examples

2023-07-21 11:36  jetwill  阅读(5)  评论(0编辑  收藏  举报

What is dirname 0 and usage examples

# https://bytexd.com/what-is-dirname-0-and-usage-examples/

#!/bin/bash
Directory=$(cd `dirname $0` && pwp -P)
echo $Directory