How do I Search for a match in a string. UNIX.

From: CJ (cozzmo1_at_hotmail.com)
Date: 11/26/04


Date: 26 Nov 2004 14:12:54 -0800

I want to make a script.
using a bash shell.

I need to grep a line to output and then
if "Cisco" (is found in the string of output)
then,
do something,
else if
Foundry. (is found in the string of output)
then
do something else.

What can I use to search the string for Cisco or Foundry or Juniper?

thanks,
crzzy1



Relevant Pages