url host

Get the host of a URL

Signature

> url host ...rest

Parameters

  • ...rest: optionally operate by cell path

Examples

Get host of a url

> echo 'http://www.example.com/foo/bar' | url host