--relative-base
Print absolute paths unless paths below DIR.
An option of realpathx.
Usage
realpathx --relative-base=DIR FILE...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
--relative-base | DIR | print absolute paths unless paths below DIR |
Examples
Make names under the project relative, but leave outside ones absolute
realpathx --relative-base=. lib/util.go /etc/hostsHelp in the terminal
gnux help realpathx --relative-base