xurls

Extract URLs from text and output them line by line.

brewmacoslinux
Try with needOr install directly
Source

About

Extract urls from text

Commands

xurls

Examples

extract all URLs from a text file$ xurls < input.txt
find URLs in command output$ cat document.txt | xurls
get URLs from clipboard and save to file$ pbpaste | xurls > urls.txt
extract URLs from website HTML$ curl https://example.com | xurls
find all URLs in source code$ xurls < script.js