Here is my script create_files.sh
################################################## #!/bin/bash # This script is used to copy a single file to nnumber of copies # How to execute? #./create_files.sh <file_to_copy> <No of copies required> # Example # ./create_files.sh test.txt 10 # $1 is the first argument i.e the filename # $2 is the second argument i.e no of copies required. files_count=$2 for i in `seq 1 $files_count` do cp $1 $1.$i done ################################################# Thanks for your inputs. -- Regards, T.Shrinivasan My experiences with Linux are here http://goinggnu.wordpress.com For Free and Open Source Jobs http://fossjobs.wordpress.com _______________________________________________ To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
