Grep excluding file name pattern

You can quote the pattern:

grep -r --exclude="*.cmd"  "ckin" ./

PS. ./ is the current directory

Refer: https://stackoverflow.com/questions/24837635/grep-excluding-file-name-pattern