I install a list of URLs in a text file named myurls
:
http://www.examples.com/1
http://www.examples.com/2
http://www.examples.com/3
How shall I pass these URLs to wkhtmltopdf
as inputs?
The direct way without using a file to store the URLs is
wkhtmltopdf http://www.examples.com/1 http://www.examples.com/2 http://www.examples.com/3 all.pdf
Maybe wkhtmltopdf
has special requirements on its arguments, but I think my question may be more general than wkhtmltopdf
:
how to provide a list of (new line separated) strings stored in a file as a list of arguments to a command?