bash shell script for 100 iteration and log time taken -
how run 100 iterations using bash shell script? want know how long take execute 1 command (start , end time). want keep track iteration running. want log each iteration. have 1 automated script need run , log it.
for in 1 2 3 command1 done
but want know how long takes complete 1 iteration - , write information log file too!
you may use seq in interation well:
for in `seq 1 100`; ... done
Comments
Post a Comment