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

Re: Copy a file one hundred times



Rick Pasotto wrote:

> 
> I forgot about seq. This is even better (the -w left pads with zero for
> equal width):
> 
> for x in $(seq -w 1 100); do cp file.jpg file${x}.jpg; done
> 

                                   correction----^

Nice! Something I have been looking for quite some time. I was using the
elseif statements before I saw this.

Thanks a ton.
-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


Reply to: