5 Feb
2002
5 Feb
'02
18:37
El Tue, 5 Feb 2002 13:18:18 -0300 (PYST) Raúl Gutiérrez Segalés <rau@campoalto.edu.py> escribio:
How can I make lots(for example 5) of copies of a file.. (from the command line, not writing a script). I tried this but it didnt work..: $ for f in "file[1-5]" ; do `cp file $f` ; done and it made a copy called file[1-5] :-(
Just yesterday I noted the existence of the "seq" command, that generates a sequence of numbers, something very useful for the kind of things you trying to do :) Try for n in `seq 5` ; do `cp file file$n` ; done