I'm having a duh moment. I'm not getting this variable populated.
for i in ~/Ws/*.png; 
do 
  echo $i; 
  FNAME=cmd basename $i;
  echo $FNAME;
done;
I am getting the following output for example
home/Ws/BrainLearning.png
BrainLearning.png
But the last line is blank and I do not understand why. Basically $FNAME is not populated with the information I was expecting.
FNAME?