Is there a simple utility that will print a file's URL to the console? An example (where url is said utility), given a file index.html
in /var/www/index.html
:
user@server$ url index.html
file:///var/www/index.html
user@server$
If it makes a difference, I'm on Mac OS X, Mountain Lion.