I have a folder containing some HTML files and I want to obtain some URLs based on the file names. So, or example, I have these files:
- hello.html
- goodby.html
- iloveyou.html
And I want to get:
How do I do that with bash?
Thank you in advance!
I have a folder containing some HTML files and I want to obtain some URLs based on the file names. So, or example, I have these files:
And I want to get:
How do I do that with bash?
Thank you in advance!
for FILE in folder/*.html
do
do_something_with "http://google.com/${FILE}"
done