I have a file: /var/log/lct/buildinformation
I am trying to grep for string: MANUFACTURER : VMware, Inc.
If it contains the string I want to output the results of:
df -h |grep '/usr|/var' |awk '{print $6 " "$5}'
If it does not have the above string to send a no vm found
I have tried every iteration and I am getting every result but the one I need. Any help would be appreciated.
that was very helpful - thanks.
Based on my somewhat limited experience in these forums, providing a sample input and the desired output (using code tags) is the best approach.
I translated your words to code, based on what you said. If you post example of real input and example of desired output, and perhaps the errors or undesired output your are getting now, I or someone else, might be able to help better.