I have a CSV with a lot of urls (pages of a website), like this:
cerrajeros-cuatro-caminos-madrid |
cerrajeros-economicos-madrid |
cerrajeros-el-pardo |
cerrajeros-el-plantio |
And I have a folder with 3 images:
cerrajeros-1.jpg
cerrajeros-2.jpg
cerrajeros-3.jpg
With the SED command and the CSV, we can do the following:
sed 's/"//g' urls.csv | while IFS=, read new; do cp "cerrajeros-1.jpg" "$new.jpg"; done
Now, we have the same image, one per URL-Page!