On Wed, Dec 09, 2020 at 11:48:52PM +0530, crimson flame wrote:
> Why does the following command not work on bash CLI?
>
> *for i in {1..5}; do echo $i done*
You need a semicolon or newline before "done". As written, the word
done is simply an argument to the echo command, and your for loop is
not syntactically complete.
I'm assuming the leading and trailing asterisks are some sort of
email markup and are not part of the actual command.