I red this answer and is working perfectly nice. But I need some more information regarding this.
The command provided in the solution above is not able to download some PDF files which are not displayed on web page.
Let U1 be the base url and U1/pdf1 and U1/pdf2 be the link for two pdf files.
But suppose if the second link is hidden (not accessible from the web page) and can be accessible only if the link is known.
The command in solution can able to get pdf1 and cannot able to get pdf2. How can I download pdf2 also using ubuntu?
xargs wget < file
. – Melebius Jan 25 '18 at 09:52