Guest User

Untitled

a guest
Jul 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. curl http://site/webpage | grep pdf | sort -u | sed 's/html code to exclude//' | sed 's/pdf">.*/pdf/' ~/urllist.txt
  2.  
  3. sed -e 's#http.*com/##' | sed -e 's#/.*##' | sed -e '$!N; /^(.*)n1$/!P; D' < ~/urllist.txt > ~/dirlist.txt
  4. cat ~/dirlist.txt | xargs mkdir
Add Comment
Please, Sign In to add comment