[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Copy a file one hundred times



Rodolfo writes:
> I need the right syntax to copy file.jpg 100 times with one command so to
> get 100 files named file1.jpg, file2.jpg, ..., file100.jpg.

for I in {1..100}; do cp file.jpg file$I.jpg ; done

But what are you actually trying to achieve?
-- 
John Hasler


Reply to: