Forum Discussion
This may not be the place to ask, but can you tell me what the pipe character enclosed in the quoted sting does?
thanks
Hi Jate00,
I did not write the command but I may be able to help. Are you referring to the pipe character that sits between "Virtual Server:" and "Destination" for example? If you are then I believe that pipe is basically just telling the grep command to search for each of those strings individually.
For example, with the pipe between "Virtual Server:" and "Destination" grep knows to search for "Virtual Server:" and "Destination" separately. Without the pipe between them grep would be searching for "Virtual Server: Destination" as if it were one string instead of two and would not find a match because there is no string that matches "Virtual Server: Destination".
-Nathan F