I need to write a script in Linux.I want to execute a function several times with a different parameter in each iteration.I write the following code:#!/bin/bashbash << _EOF_for ((i=0; i<=20;i++));doMYFUNCTION -Xdone_EOF_where -X must be an integer.I tried to write $i instead but without success.
how to send integer as a parameter
shell script