Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo ${file[*]} | tr '\n' ' ' | grep -Poi "<a[[:space:]][^>]*?href[[:space:]]*=[[:space:]]*\"*[^\"]*?\.pdf[\"'> ]" \
- | grep -Poi 'href[[:space:]]*=[[:space:]]*.*\.pdf' \
- | sed "s/[Hh][Rr][Ee][Ff][[:space:]]*=[[:space:]]*[\"']*//"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement