Can someone please explain to me why I'm getting 'command not found' on line 11 when I try and run the script?
#!/bin/bash
var="nef892na9s1p9asn2aJs71nIsm"
for counter in {1..40}
do
var=$(echo $var | base64)
if [[$counter -eq 35]]; then
echo $var
fi
done
Line 11 is:
if [[$counter -eq 35]]; then
I've tried various indentations and removing the double brackets on the 'if' statement. I'm expecting the script to print out the 35th iteration of the 'var' variable. Thank you.