bruston / urlseg

Expands a list of urls into their individual uri elements.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expands a list of urls into their individual uri elements. Takes input from stdin.

So: https://www.example.com/foo/bar/baz.js

Becomes:

https://www.example.com/foo/bar/baz.js
https://www.example.com/
https://www.example.com/foo
https://www.example.com/foo/bar

Outputs to stdout.

Example Usage

echo "https://www.example.com/foo/bar/baz.js" | urlseg

cat urls.txt | urlseg

About

Expands a list of urls into their individual uri elements.

License:MIT License


Languages

Language:Go 100.0%