How do I Search for a match in a string. UNIX.
From: CJ (cozzmo1_at_hotmail.com)
Date: 11/26/04
- Next message: Bit Twister: "Re: How do I Search for a match in a string. UNIX."
- Previous message: Brian Hughes: "Wassamatter with the Web connection on Slax Live -CD?"
- Next in thread: Bit Twister: "Re: How do I Search for a match in a string. UNIX."
- Reply: Bit Twister: "Re: How do I Search for a match in a string. UNIX."
- Reply: Chris F.A. Johnson: "Re: How do I Search for a match in a string. UNIX."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Bit Twister: "Re: How do I Search for a match in a string. UNIX."
- Previous message: Brian Hughes: "Wassamatter with the Web connection on Slax Live -CD?"
- Next in thread: Bit Twister: "Re: How do I Search for a match in a string. UNIX."
- Reply: Bit Twister: "Re: How do I Search for a match in a string. UNIX."
- Reply: Chris F.A. Johnson: "Re: How do I Search for a match in a string. UNIX."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|