Wednesday, November 11, 2015

A comes in, but ..

I was a little over excited to hear that A finally came in.  My expectation was very high.

But the database seems stuck as I don't have the right on the computer.  Fortunately, the it still runs under DOS although the built version seems several years old.

back to square 1. in reality 

Coming back to set eflech=. and set path=%path%;.  it still works fine. 

Just dug out so many lines of old code that can be savaged. for example, from dif to val and cpi.  this is for the case when you have more than 1000 files.  do this on a single file is a waste of time.


1.bat{
ls *.dif | sed -f 2val-dif
call 3.bat}

2val-dif{
s/\(.*\)\(...\)/cat & | sed -f 2valx_dif >5 \
mv 5 \1val\
cat \1val | sed -f 2val_dif_cpix >5 \
mv 5 \1cpi\
/w 3.bat}
2valx_dif {
1 {
s/\(.*\)\ *\(.*\)/FilePar\
\2\
\
1\
0\
N\
CU\
0\
1\
0\
1\
BerPar01\
99/g
}
2 {
s/^ //
s/\(.*\)\ \ \(.*\)\ \ .*\ Cu\ .*\ \ \(.*\)\ \ \(.*\)/\1\
\3\
\2\
T\
99\
1\
\4\
N\
N\
0\
Intens01/
}
s/^ //
s/  /\
/g
}

2val_dif_cpix {
1 s/.*/SIETRONICS XRD SCAN/
2 h
2,13 d
17,21 d
22 s/.*/CU\
1.54056\
11\/13\/01\
1/
23 x
24 s/.*/SCANDATA/}

No comments:

Post a Comment