[olug] script help

Christopher Cashell topher-olug at zyp.org
Wed Feb 20 02:39:04 UTC 2008


On Feb 19, 2008 8:27 PM, 02fun-u2 <02fun-u2 at excite.com> wrote:
> I have a script that gathers some information from a large amount of Linux units (outputs to a file). This script has a delimiter for the start and end of the information  /d1 and /d2. If the output has and of the information I am looking for BETWEEN /d1 and /d2 I want it to print everything in-between those delimiter. Otherwise I want to discard that information.

Can you provide a couple of example outputs that you're actually
trying to process?  We can offer some general suggestions and guides
on where to look, but without knowing exactly what the data you're
processing looks like, it's difficult.

My immediate thought is that a decent regular expression and either
grep, sed, or awk will likely do the trick easily enough.  Give us
some sample data, and we can probably be more helpful. ;-)

-- 
Christopher



More information about the OLUG mailing list