Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Returns all urls found in the path passed as a parameter
- getUrlsIn(){ p="http(s)?://([a-z0-9_\-]+\.?)+";grep -RishEo $p $1|grep -Eios $p|awk '!u[$1]++';}
- #Example use:
- #getUrlsIn /bin
- #Output
- #http://www.gnu.org
- #http://home.comcast.net
- #http://mail.nl.linux.org
- #http://www.alcove
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement