[ale] bash, full filename

Geoffrey esoteric at 3times25.net
Sat Nov 29 18:47:37 EST 2003


David Corbin wrote:
> How can I take a filename (which may or may not be relative) and
> convert it to be a fully qualified filename, in bash?

type vi |awk '{print $NF}'

This will only work if it's in your path.  If not, you're going to have 
to use locate or find.

-- 
Until later, Geoffrey	esoteric at 3times25.net

Building secure systems inspite of Microsoft



More information about the Ale mailing list