Bash function to execute any command multiple times

#takes 2 parameters:
# 1 - the number of time you can to execute the loop
# 2 - the action to call
# Executes a command multiple times
  for ((x = 0 ; x <= $ITERATIONS ; x++)); do

Example use:

xloop 3 date +"%Y-%M-%d"

This post is also available in: Greek

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.