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
<2000>
2001
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
<2000>
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|