EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: utilities for counting and sorting .db files
From: Rozelle Wright <[email protected]>
To: [email protected]
Date: Wed, 22 Mar 2000 12:17:34 -0700 (MST)
I have recently written two perl scripts which other people
might find useful.  

The first counts the number of records in a list of .db files and
prints out the number of records in each file and the total number of
records in the list of files.  
example usage: 
dbcount inj/db/*.db llrf/db/*.db > record.count

The second sorts a .db file alphabetically by record name and within each record
alphabetically by field name.
example usage:
dbsort inj.db > inj.db.sort
dbsort inj.db.old > inj.db.old.sort
diff inj.db.sort inj.db.old.sort > inj.new.old.diffs

We have found the sorting utility useful in comparing  the results of
changes made to databases that are built from capfast schematics.  Capfast
databases appear to be put out in distinctly different orders for quite minor
changes, so a straight "diff inj.db inj.db.old" usually produces a meaningless
result.

If anyone is interested in these I would be glad to share them.
Rozelle
[email protected]


Navigate by Date:
Prev: Re: compiler bug in unpatched Solaris C++ 5.0, Visual C++ Kay Kasemir
Next: building site specific vxworks objects Geoff Savage
Index: 1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: EPICS R3.13.1 and Power PC Andrew Johnson
Next: building site specific vxworks objects Geoff Savage
Index: 1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·