Linux Bash Script Which Fails To Generate Expected Result Stack Overflow

Linux Bash Script Which Fails To Generate Expected Result Stack Overflow