From b98e05ba63f2e108df634b4d9f9e5530769c6b80 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 10 Jun 2021 18:58:52 +0200 Subject: Added scripts and readme --- urlgrep | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 urlgrep (limited to 'urlgrep') diff --git a/urlgrep b/urlgrep new file mode 100755 index 0000000..ba81765 --- /dev/null +++ b/urlgrep @@ -0,0 +1,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" + -- cgit v1.3