Debian Codegraph @

builduti/zaehlen

raw symbols SCIP
1 #!/bin/sh
2
3 # count the cookies
4 A=`grep "^%" \`find ../data -type f\` | wc -l`
5 # count the additional cookies
6 if [ -d ../data-more ] ; then
7 datamore=`find ../data-more -type f`
8 if [ _"" != _"${datamore}" ] ; then
9 Ax=`grep "^%" ${datamore} | wc -l`
10 fi
11 fi
12 # count data which are to be formated
13 B=`wc -l ../predata/pre* | tail -n1 | sed "s/ *\([0-9]*\).*/\1/"`
14 # count the recipes
15 C=0
16 for rec in `find ../rezepte -type d` ; do
17 if [ $rec != "../rezepte" ] ; then
18 x=`ls $rec | wc -l | tail -n1 | sed "s/ *\([0-9]*\).*/\1/"`
19 C=$(($C+$x))
20 fi
21 done
22 # sum of all
23 echo $A + $Ax + $B + $C = $(($A+$Ax+$B+$C))