grep for string

Discussion in 'Programming/Scripts' started by gartie, Aug 4, 2015.

  1. gartie

    gartie New Member

    Hello,

    I have a file /var/log/lct/buildinformation. This file contains all of the information for our server builds.
    Within the file is a statement:
    MANUFACTURER : HP
    or MANUFACTURER : VMWARE,INC.
    I am trying to pull out the VMWARE, INC. and do a quick df - h on /var and /usr if it is a vm.
    I am having trouble with the syntax for the grep of the Manufacturer name.
    Thanks,

    Gary
     
  2. TiTex

    TiTex Member

    what is the issue ?
    grep VMWARE /var/log/file
     

Share This Page