uniqurl

command
v0.0.0-...-f9b4428 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

README

uniqurl

Uniqurl takes a list of URLs on stdin and deduplicates the domains, returning only the HTTPS URL for a given domain pair. If no HTTPS URL exists, the HTTP URL is returned.

Usage

$ cat urls.txt
https://www.google.com
http://www.google.com
https://www.facebook.com
http://www.facebook.com
https://www.yahoo.com
http://www.uber.com

$ cat urls.txt | uniqurl
https://www.google.com
https://www.facebook.com
https://www.yahoo.com
http://www.uber.com

Installation

$ go get -u github.com/leesoh/hacks/uniqurl

Thanks

@dee-see for the idea.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL