Grepping for exact words with UNIX

I want to search Exact word pattern in Unix.
Example: Log.txt file contains following text:

aaa
bbb
cccaaa   ---> this should not be counted in grep output looking for aaa

I am using following code:

count=$?
count=$(grep -c aaa $EAT_Setup_BJ3/Log.txt)

Here output should be ==> 1 not 2, using above code I am getting 2 as output.
Something is missing, so can any one help me for the this please?

Grepping for exact words with UNIX

How to find ICCID of SIM in Android device?

How to find ICCID of SIM in Android device connected to Linux PC using command?

I have connected my Android device with SIM to my Linux PC.
I want to know ICCID of SIM in Andorid phone.

I can get the ICCID using getIccSerialNumber() when used in Android Application. But I don’t want to run Android App on a phone. Instead, I want to get the ICCID using my Linux PC only. i.e. Either by using adb command or running a C program in my PC.

How can I do it?

How to find ICCID of SIM in Android device?

read more