[sf-lug] Simple way to track links-to-links to their final resolution?

Kristian Erik Hermansen kristian.hermansen at gmail.com
Sun Dec 16 16:59:46 PST 2007

On Dec 16, 2007 4:21 PM, RBV <GoodWriter2548 at earthlink.net> wrote:
> Do you happen to know if there's any way to also list the intermediate
> "hops"?  I tried all readlink's -f, -e, and -m parameters without luck in
> that regard.

Optimize at will...

$ i=/usr/bin/java; o=$(readlink "$i"); echo "$i"; while [ $? -eq 0 ];
do echo "$o"; i=$(echo -en "$o" | tr -d '\n'); false; o=$(readlink
"$i"); done
Kristian Erik Hermansen
"I have no special talent. I am only passionately curious."

More information about the sf-lug mailing list