aboutsummaryrefslogtreecommitdiff
path: root/urlgrep
blob: ba81765142f1dc22290f2179f8f5f7872032c00f (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

# Find all url in stdin, print them newline-separated to stdout

reg='(((http|https|ftp)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]'

grep -Po "$reg"

Generated with cgit - Back to sebastiano.tronto.net