Answer the question
In order to leave comments, you need to log in
How to clone files in Linux?
There is a following task.
The directory contains a file, for example 1.jpg and a text file names.txt with file names in the format
2.jpg
3.jpg
4.jpg
5.jpg
....
100.jpg
Answer the question
In order to leave comments, you need to log in
while read line;do cp 1.jpg $line;done< names.txt
How many variations of reading a file, so many implementations can be :)
It's not comme il faut to help with ready-made solutions in such matters, so:
bash awk grep sed
This is Russian mana for the most popular console utilities / word processors and for the bash scripting language. Go ahead.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question