2006-11-22から1日間の記事一覧
シンボリックリンクをつきあたりまでたどるもの。 realpath, readlink はないと困る。 tracelink() { target="$1" if [ -e "$target" ];then if [ -L "$target" ];then echo "$target ->" "$0" `ls -ld "$target" | sed -e 's@.* -> @@'` else ls -ld "$targ…
シンボリックリンクをつきあたりまでたどるもの。 realpath, readlink はないと困る。 tracelink() { target="$1" if [ -e "$target" ];then if [ -L "$target" ];then echo "$target ->" "$0" `ls -ld "$target" | sed -e 's@.* -> @@'` else ls -ld "$targ…