I want to write a shell script, in which it will call different command according to the variable length. But I didn't figure it out yet.
My unwork script is here:
for i in n5 n25
if ${#i} == 2;
then
do
python two.py n5
elif ${#i} == 3;
do
python three.py n25
fi
How to evaluate the variable length in shell script?