url scheme

Get the scheme (e.g. http, file) of a URL

Signature

> url scheme ...rest

Parameters

  • ...rest: optionally operate by cell path

Examples

Get the scheme of a URL

> echo 'http://www.example.com' | url scheme

You get an empty string if there is no scheme

> echo 'test' | url scheme