a mismatch between CENTOS 7 and Red Hat Enterprise Linux Server release 6.7 : I have a bash script , it works on CENTOS fine ,but when I want to
run the script on Red Hat Enterprise Linux , I got the following error.
    
    line 56: -2: substring expression < 0

help please, it is urgent :(

all your comments are appreciated