Hi, I would like to compare the 25th position of the file with the character '(' and if it is not equal then it would generate a mail. I have used the below if condition, however it is always executing the code within if, even the comparison is expected to return false.
if [ `cat myfile.txt | cut -c25-25` != '(' ]
Please help me out of this.
Thanks,
Dheepan