I have two lines, which are saved in two variables. But it  doesn't really matter, where they are saved. My question is, how do I compare each character from both lines?For examplesHelloHlleoresult: true (H), false ... ,true (o)
Compare characters
scripting
The following is probably what you're looking for:l1=Hellol2=Hlleocount=`echo $l1|wc -m`for cursor in `seq 1 $count`do        c1=`echo $l1|cut -c$cursor`        c2=`echo $l2|cut -c$cursor`        if test $c1 = $c2        then                echo true ($c1),         else                echo false ($c2 instead of $c1),         fidone