How can I get the behavior of GNU's readlink -f on a Mac?

Posted by troelskn on Stack Overflow See other posts from Stack Overflow or by troelskn
Published on 2009-06-28T20:26:33Z Indexed on 2010/04/26 0:13 UTC
Read the original article Hit count: 136

Filed under:
|

On Linux, the readlink utility accepts an option -f that follows additional links. This doesn't seem to work on Mac and possibly BSD based systems. What would the equivalent be?

Here's some debug information:

$ which readlink; readlink -f
/usr/bin/readlink
readlink: illegal option -f
usage: readlink [-n] [file ...]

© Stack Overflow or respective owner

Related posts about mac

Related posts about freebsd