I have a text file with hard drive image checksums and file names like so:
Code:
e651cc31e6837e9718a9e216669eacd2 hda
011c0bc5930ba01a479755fa62dfabe8 hda1.first_sectors
459ebcaa3131929b356c5227aa26745f hda2.000
f63d3c1bca1db879bdd924cbc71e533c hda2.first_sectors
and I have loop that checks the md5sums against the files after copying them across the network. the problem is hda is obviously not working as it pulls up the above 4 lines. Is there anyway to grep to exclude everything except an exact match of "hda"?