Make multiple copies of files with a shell script

view story

http://stackoverflow.com – I am trying to write a small shell script that makes the multiple copies of a file. I am able to take the file name as input but not the number of copies. Here is what I wrote. But I am unable to pass the NUMBER variable to for loop. echo -n "Enter filename: " read FILENAME echo -n "Number of copies to be made: " read NUMBER for i in {2..$NUMBER} do cp -f $FILENAME ${FILENAME%%.*}"_"$i.csv done (HowTos)