forked from extern/nushell
23 lines
279 B
Markdown
23 lines
279 B
Markdown
|
---
|
||
|
title: url host
|
||
|
layout: command
|
||
|
version: 0.59.0
|
||
|
---
|
||
|
|
||
|
gets the host of a url
|
||
|
|
||
|
## Signature
|
||
|
|
||
|
```> url host ...rest```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
- `...rest`: optionally operate by cell path
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
Get host of a url
|
||
|
```shell
|
||
|
> echo 'http://www.example.com/foo/bar' | url host
|
||
|
```
|