1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
filelist=$1
mapfile=$2
outputfile=runme.sh
for filename in `more $filelist`
do
#make tag, use name of calib.dat file with calib_ and .dat stripped
tempname=${filename##*/}
tempnamebase=${tempname%.*}
tempname=`echo $tempnamebase| replace "." "_" | replace "calib_" "" | replace "calib" "" `
echo $filename $tempname >> $mapfile
echo $filename $tempname
echo "./fill_calibobjects "$filename $tempname >> $outputfile
done
|