4 app=`echo $i | awk -F. '{ print $2 }'`
5 [ ! -z $app ] && app=".$app"
10 sicnt=`grep 'ions per' $i | awk '{ print $5 }'`
11 ccnt=`grep 'ions per' $i | awk '{ print $6 }'`
15 echo "parsing file $PWD/$i ..."
16 echo " Si: $sicnt, C: $ccnt, total: $total"
25 sed -n -e '/ position of ions in cartesian/,/----/p' $i | \
26 grep -v POS | grep -v total | grep -v -- ^\ - | \
29 time=`printf "%05d" $tcnt`
30 #echo -en "$tcnt/$cnt "
32 echo "# P $total $time <$cx,$cy,$cz>" > \
33 video$app/atomic_conf_$time.xyz
38 if [ $cnt -ge $sicnt ]; then
42 echo "$type $x $y $z $color $force" >> \
43 video$app/atomic_conf_$time.xyz
46 if [ $cnt -eq $total ]; then