curl http://host.xx/file.js | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*"* cat file | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*"*