xurls

Extract URLs from text and other data sources

brewmacoslinux
Try with needOr install directly
Source

About

Extract urls from text

Commands

xurls

Examples

Extract URLs from a text file$ xurls < input.txt
Extract URLs from command output$ cat webpage.html | xurls
Extract URLs and filter with grep$ xurls < data.txt | grep example.com