Adds getpaths script
This commit is contained in:
parent
c5a999d36b
commit
b4bdba9e24
1 changed files with 11 additions and 0 deletions
11
bin/.bin/webtest/getpaths
Executable file
11
bin/.bin/webtest/getpaths
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
html="$(curl $1 2> /dev/null )"
|
||||
|
||||
{
|
||||
echo "$html" | hq \* attr src
|
||||
echo "$html" | hq \* attr href
|
||||
echo "$html" | hq \* attr target
|
||||
echo "$html" | hq \* attr style | sed 's/;/\n;/' | grep url
|
||||
echo "$html" | hq \* data style | sed 's/;/\n;/' | grep url
|
||||
} | sort | uniq
|
Loading…
Add table
Add a link
Reference in a new issue