I have a configuration file in which I want to check if the the key value pair are present as below and I want them to be a exact match.
key=value xxxxx xxxx
After the key value there can be a space or a tab as shown in the above so I cannot use a simplegrep -q for getting the key value pair.
Can someone please help me with this
fmt -1 ConfigFile | grep -qxF 'key=value'orgrep -q '^key=value$ ConfigFileorgrep -qE '^key=value([ \t].*)?$' ConfigFiledepending on what you want to happen if you find space/tab