<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6603.0">
<TITLE>RE: [BLDG-SIM] eQuest: macro for extracting data from a sim file</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Awk is also a good choice, here's an editorial comparison of Awk vs. SED, with a link to tutorials for each:<BR>
<BR>
<A HREF="http://unix.derkeiler.com/Newsgroups/comp.unix.shell/2004-08/0405.html">http://unix.derkeiler.com/Newsgroups/comp.unix.shell/2004-08/0405.html</A><BR>
<BR>
Awk is a programming language with arithmetic operators, array handling etc., SED is essentially batch application of regular expressions. <BR>
<BR>
Given the platform independence of regular expressions, SED is my cup of tea.  But as Jeff states the case, Awk would be an excellent tool for a data extraction task -- back in the dark ages of DOS, I used Awk years before learning SED to strip the colors from AutoCAD DXF files.<BR>
<BR>
Brandon<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From:   BLDG-SIM@gard.com on behalf of Jeff Haberl<BR>
Sent:   Sat 11/3/2007 7:07 PM<BR>
To:     BLDG-SIM@gard.com<BR>
Cc:    <BR>
Subject:        [BLDG-SIM] eQuest: macro for extracting data from a sim file<BR>
<BR>
Jessica.<BR>
<BR>
We use AWK, which can be obtained from Gnu software for a modest donation (I.e. GAWK). Its incredibly powerful, and has a long history from its origin at Bell labs as a unix toolkit. There are several good books on AWK, including one by its creators: Aho, Weinberger and Kernigan.<BR>
<BR>
This work well on the FORTRAN-formatted output from DOE-2.<BR>
<BR>
Jeff <BR>
BB 8=!  8=)  :=)  8=)  ;=)  8=)  8=(  8=)  :=')  8=)  8=)  8=? BB<BR>
<BR>
Jeff S. Haberl, Ph.D., P.E.............................jhaberl@esl.tamu.edu<BR>
<BR>
Professor......................................................Office Ph: 979-845-6507<BR>
<BR>
Department of Architecture.......................Lab Ph: 979-845-6065<BR>
<BR>
Energy Systems Laboratory.......................FAX: 979-862-2457<BR>
<BR>
Texas A&M University..............................77843-3581<BR>
<BR>
College Station, Texas, USA.......................URL: www-esl.tamu.edu<BR>
<BR>
BB 8=/  8=)  :=)  8=)  ;=)  8=)  8=()  8=) 8=?  8=)  8=)  8= BB<BR>
<BR>
<BR>
----- Original Message -----<BR>
From: BLDG-SIM@gard.com <BLDG-SIM@gard.com><BR>
To: BLDG-SIM@gard.com <BLDG-SIM@gard.com><BR>
Sent: Fri Nov 02 16:35:03 2007<BR>
Subject: [BLDG-SIM] eQuest: macro for extracting data from a sim file<BR>
<BR>
I need to extract data from a sim file. I have over 1600 runs to make and need only one piece of data from the SIM file. Has anyone put together a macro like this before? Examples...<BR>
<BR>
Thanks, Jessica<BR>
<BR>
<BR>
Jessica E. McCready<BR>
Energy Engineer<BR>
KEMA Services Inc.<BR>
492 Ninth Street, Suite 220<BR>
Oakland, CA 94607<BR>
T 510-891-0446<BR>
F 510-891-0440<BR>
jessica.mccready@kema.com<BR>
Please visit our website www.kema.com <<A HREF="file://www.kema.com">file://www.kema.com</A>> <BR>
<BR>
<BR>
<BR>
==================<BR>
You received this e-mail because you are subscribed<BR>
to the BLDG-SIM@GARD.COM mailing list.  To unsubscribe<BR>
from this mailing list send a blank message to<BR>
BLDG-SIM-UNSUBSCRIBE@GARD.COM<BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

<PRE>

===========================
You received this e-mail because you are subscribed 
to the BLDG-SIM@GARD.COM mailing list.  To unsubscribe 
from this mailing list send a blank message to 
BLDG-SIM-UNSUBSCRIBE@GARD.COM
</PRE></BODY>

</HTML>