2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: path expand
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
Try to expand a path to its absolute form
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> path expand --strict --columns```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `--strict`: Throw an error if the path could not be expanded
|
|
|
|
- `--columns {table}`: Optionally operate by column path
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Expand an absolute path
|
|
|
|
```shell
|
|
|
|
> '/home/joe/foo/../bar' | path expand
|
|
|
|
```
|
|
|
|
|
|
|
|
Expand a path in a column
|
|
|
|
```shell
|
|
|
|
> ls | path expand -c [ name ]
|
|
|
|
```
|
|
|
|
|
|
|
|
Expand a relative path
|
|
|
|
```shell
|
|
|
|
> 'foo/../bar' | path expand
|
|
|
|
```
|