Tuesday, 2 July 2019

linux - Getting the full path to a file with "readlink -f" does NOT work on OSX?

On Linux (redhat/ubuntu/you name it), I can do this:


$readlink -f myfile.txt
/tmp/local/path/to/myfile.txt

On OSX (yosemite):


$ readlink -f eclipse-projects.xml 
readlink: illegal option -- f

Can someone tell me what's going on? What's the "equivalent" of -f on osx? (And why do people love to make things sooooo inconsistent?!)

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...