New to bash I was trying to write simple while loop:
let i = $1
while(i < 4); do
echo Hi
((i++))
done
Running this with: $ bash bash_file.sh 0
Gave me this warning
bash_file.sh line 2: 4: no such file or directory
Question: since when a variable must be file or directory?
How to solve this?
EDIT: if I want to loop while i < $1 + $2, when $1 and $2 are numbers, how to write it>