Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 395 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 395 Bytes

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