M
M
Maxim Ivanov2017-03-07 12:36:59
bash
Maxim Ivanov, 2017-03-07 12:36:59

Why doesn't bash see the variable?

#!/usr/bin/env bash

count = 20 # 

for i in $(seq 1 $count)
do
   echo "Welcome $i times"
done

As a result, count not found

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
screen_sailor, 2017-03-07
@splincodewd

Without spaces, you need to assign around =.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question