Thursday, February 14, 2013

Shell script to create multiple files at a time


Create multiple files at  a time using below script.


cat file.sh

for i in `seq 1 1 15`;

do touch guest$i.txt;

 done

#1 is the starting number. 1 is the incrementing order, if 2 it increments even, 15 upto 15 no it will create it.

No comments: