On 12/09/2014 08:11 PM, Jonathan Billings wrote:
On Tue, Dec 09, 2014 at 03:57:03PM -0500, ken wrote:
You'd think this functionality would be included already in one or another linux utility. It's kinda like the complement to the 'basename' utility. I've looked into the dark corners of ls, stat, file, bash, type, find, and a few other linux standards, but nothing seems to do this.
'readlink -f FILE'
The -f (or --canonicalize) follows symlinks and prints the canonical path.
Perfect! Thanks!!!