I am able run a script that contains
for fname in deletions
do
numdeletions=$(ls -l ${2}/deletions{[1-9],[1-9][0-9]}.txt | wc -l)
done
And it works just fine
However when script contains
for fname in deletions
do
num${fname}=$(ls -l ${2}/deletions{[1-9],[1-9][0-9]}.txt | wc -l)
done
I get
./testScript.sh: line 4: numdeletions=: command not found
How am I able to fix this