File: sum2csv.sh

package info (click to toggle)
atlas 3.10.3-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 38,308 kB
  • sloc: ansic: 486,789; fortran: 66,209; asm: 7,267; makefile: 1,466; sh: 604
file content (14 lines) | stat: -rwxr-xr-x 297 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#
# USAGE: sum2csv.sh <sum file> <mf index>
#
fil=$1
imf=$2
tfil=tmptmp.out
ofil=`echo ${fil} | sed -e "s/out/csv/"`
make xr1sum2csv
rm -f $ofil $tfil
n=`fgrep -n 'CUT HERE' $fil | sed 's/:.*//'`
head -n $n $fil > $tfil
./xr1sum2csv -i $tfil -m $imf -D 2 YU XU -p 1 -o $ofil
rm -f $tfil