On Sat, Dec 13, 2008 at 09:13:07PM +0000, Tzafrir Cohen wrote: > On Sun, Dec 14, 2008 at 03:50:31AM +0900, Osamu Aoki wrote: > > On Sat, Dec 13, 2008 at 07:12:32PM +0000, Rodolfo Medina wrote: > > > 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. > > > > > > Can anybody suggest how to achieve that? > > > > ere is one without looping :-) > > > > $ seq 1 100 | sed "s/^\(.*\)$/file\1.jpg/" |xargs -n1 echo file.jpg > > err.. does this work? I think he put an echo to show the lines echo file.jpg file1.jpg .... > > -- > Tzafrir Cohen | tzafrir@jabber.org | VIM is > http://tzafrir.org.il | | a Mutt's > tzafrir@cohens.org.il | | best > ICQ# 16849754 | | friend > > > -- > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org > > -- "President Musharraf, he's still tight with us on the war against terror, and that's what I appreciate. He's a -- he understands that we've got to keep Al Qaeda on the run, and that by keeping him on the run, it's more likely we will bring him to justice." - George W. Bush 08/22/2002 Ruch, OR
Attachment:
signature.asc
Description: Digital signature