Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    Welcome to SO! For small changes and remarks, adding a comment to an existing answer might be more appropriate than adding an answer, especially if this copied answer lacks a lot of the other information of the original answer. Once you've collected a bit more reputation, you are able to add comments to other people's answers. For now, try to collect reputation by asking unique, valuable questions or providing stand alone, good answers.
    – cfi
    Commented Mar 21, 2014 at 8:16
  • 1
    Since you are referring to nolan6000's answer, please note that the poster dhardy already commented that he would not accept nolan6000's answer because he is not looking for a script. So strictly speaking your answer does not answer the question.
    – cfi
    Commented Mar 21, 2014 at 8:17
  • the function can be added to .profile and hence available for interactive use.
    – adib
    Commented Mar 19, 2015 at 6:19
  • This won't work if $1 is a plain filename: get_abs_filename foo -> nothing (or <current_dir>/foo/foo if foo is a directory). Commented Nov 8, 2018 at 14:05