Skip to content

Files

Latest commit

 

History

History

eapath

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

eapath

extract all paths

Take as input on stdin a list of urls and print on stdout all the unique urls without queries.

Input

https://example.com/file?p=1
https://example.com/2?a="
https://www.example.com/file
https://example.com/file?1=2
https://example.com/2?d=2
https://www.example.com/file

Usage

cat urls | eapath

Output

https://example.com/file
https://example.com/2
https://www.example.com/file