Am 12.02.2010 14:38, schrieb Guillaume Outters:
Greg a écrit :
Except that HP-UX 10.20 and HP-UX 11.11 don't have readlink(1).
(Maybe it's added in 11.2x? I don't know.)
You're right. I must admit I made a concession to some GNU coreutils tools on the platform.
I once used some ls -l "$SCRIPTS" | sed -e 's/.* -> //' magic to replace it
(and it worked two minutes ago on the HP-UX, just like it used to back in the old days).
I once wrote a more generic shell function for this purpose, see:
http://sudrala.de/en_d/shell-getlink.html
Bernd
--
Bernd Eggink
http://sudrala.de