summaryrefslogtreecommitdiff
path: root/get-hrefs.sh
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2018-06-05 21:54:43 -0400
committerB Stack <bgstack15@gmail.com>2018-06-05 21:57:10 -0400
commit9411d13c4940ccce70070327b1e40b690ed2813c (patch)
tree35960e6640da83b4e1f5984f97865bb89bda644a /get-hrefs.sh
downloadformer-gists-9411d13c4940ccce70070327b1e40b690ed2813c.tar.gz
former-gists-9411d13c4940ccce70070327b1e40b690ed2813c.tar.bz2
former-gists-9411d13c4940ccce70070327b1e40b690ed2813c.zip
initial retrieval from github
Diffstat (limited to 'get-hrefs.sh')
-rw-r--r--get-hrefs.sh/description1
-rw-r--r--get-hrefs.sh/get-hrefs.sh3
2 files changed, 4 insertions, 0 deletions
diff --git a/get-hrefs.sh/description b/get-hrefs.sh/description
new file mode 100644
index 0000000..4194786
--- /dev/null
+++ b/get-hrefs.sh/description
@@ -0,0 +1 @@
+Get hrefs from html \ No newline at end of file
diff --git a/get-hrefs.sh/get-hrefs.sh b/get-hrefs.sh/get-hrefs.sh
new file mode 100644
index 0000000..e134d84
--- /dev/null
+++ b/get-hrefs.sh/get-hrefs.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+# read stdin
+grep -oE 'href=\".+\"' | sed -r -e 's/^href=\"//g;' -e 's/\"\s*$//;' \ No newline at end of file
bgstack15