#!/bin/bashmkdir ~/folderbrojac=0while [ "$brojac" -le 5 ] # with [...], need to quote vars and spaces around [ and ]do mkdir ~/folder/zad"$brojac" brojac=$(( brojac+1 )) # cannot have spaces around =done
I would write:
for ((i=0; i<=5, i++)); do mkdir -p ~/folder/zad$idone