Desired output: all numbers greater than 5. One of few attempts:for i in {1..10}; do if [$i > 5]; then echo $i; fi; doneBut the output is:-bash: [1: command not found-bash: [2: command not found-bash: [3: command not found-bash: [4: command not found-bash: [5: command not found-bash: [6: command not found-bash: [7: command not found-bash: [8: command not found-bash: [9: command not found-bash: [10: command not foundWhat is missing?
Echo filtered numbers within a for loop and with an if statement
bash;osx
Spaces and -gtuser1@machine:~/tmp$ for i in {1..10}; do if  [ $i -gt 5 ]; then echo $i; fi; done678910