2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: url scheme
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
gets the scheme (eg http, file) of a url
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> url scheme ...rest```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `...rest`: optionally operate by cell path
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Get scheme of a url
|
|
|
|
```shell
|
|
|
|
> echo 'http://www.example.com' | url scheme
|
|
|
|
```
|
|
|
|
|
|
|
|
You get an empty string if there is no scheme
|
|
|
|
```shell
|
|
|
|
> echo 'test' | url scheme
|
|
|
|
```
|