Created
August 7, 2021 03:56
-
-
Save xanoni/ac9b697c77b162e801e8248103473394 to your computer and use it in GitHub Desktop.
Poor man's `realpath`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env sh | |
echo "$(cd "$(dirname "$1")"; pwd -P)/$(basename "$1")" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment