mirror of
https://github.com/nushell/nushell.git
synced 2024-12-27 17:39:15 +01:00
bff81f24aa
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
755 B
755 B
path join
Join a structured path or a list of path parts.
Optionally, append an additional path to the result. It is designed to accept the output of 'path parse' and 'path split' subcommands.
Usage
> path join ...args {flags}
Parameters
- ...args: Optionally operate by column path
Flags
- -h, --help: Display this help message
- -a, --append : Path to append to the input
Examples
Append a filename to a path
> echo '/home/viking' | path join -a spam.txt
Join a list of parts into a path
> echo [ '/' 'home' 'viking' 'spam.txt' ] | path join
Join a structured path into a path
> echo [[ parent stem extension ]; [ '/home/viking' 'spam' 'txt' ]] | path join