Extract URLs from Text

Extract all URLs from a text string.

Code

General
echo "$text" | grep -oE 'https?://[^ ]+' | jq -R -s 'split("\n") | map(select(length > 0))'

Parameters

Text containing URLs

Server

More Bash Snippets