Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- grep http | grep -shoP 'http.*?[" >]' *.txt > http-urls.txt
- For extracting HTTPS, FTP and other URL format use
- grep -E '(((https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]' *.txt > urls.txt
Advertisement
Add Comment
Please, Sign In to add comment