mirror of
https://github.com/tcsenpai/powertux.git
synced 2025-06-06 19:25:23 +00:00
fetch and extract (using curl) all http/https links in a page
This commit is contained in:
parent
3c17c65a20
commit
396c482a4a
6
bin/gophereal
Executable file
6
bin/gophereal
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
curl "$1" > dump_tmp_file
|
||||||
|
cat dump_tmp_file | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | sort -u > gophereal_links
|
||||||
|
rm -rf dump_tmp_file
|
||||||
|
cat gophereal_links
|
Loading…
x
Reference in New Issue
Block a user